We give a sufficient condition on a C*-algebra to ensure that every weakly compact operator into an arbitrary Banach space can be approximated by norm attaining operators and that every continuous bilinear form can be approximated by norm attaining bilinear forms. Moreover we prove that the class of C*-algebras satisfying this condition includes the group C*-algebras of compact groups.