Qualifying the addressed structure

A reporting function receives a pointer to a structure whose only member is an integer count. Its interface should prevent direct member assignments through that pointer while allowing the function to reassign its local pointer parameter. Place the C keyword immediately before struct Sample in the parameter declaration.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Passing Structures to Functions Questions: