which points to a particular student’s record. In order to access a member (for example birthYear) of this student’s record via the pointer we first need to dereference the pointer (*studentptr) and then access the member via the direct member selection operator .:
The parentheses around (*studentptr) are important since without them the computer would attempt to execute the member selection operator first, which would make no sense, given that studentptr is not a structure but rather a pointer to a structure.
Time for some review of multidimensional arrays (this is called interleaved learning - a method of learning that helps you retain better what you have learned!)
Please complete the following program so that the function maxTemp() finds the maximum value stored in the array passed to it. Be sure to enter your prototype at the top of the program and don’t forget to insert the correct function call into the main function. Store the value returned by the function maxTemp() in the variable "maximum" so that it gets printed out properly in the following line.
If your code appears to perform correctly but you are not given a keyword, please check for any extra spaces or line breaks in your output and remove them.
Let’s continue developing the previous problem. This time we’ll practice how to change entries in a structure. Complete the following C program so that the user can enter a new student name, id and class year to be stored in the variable me of type student_t. All you need to do is complete the scanf() and printf() lines.
If your code appears to perform correctly but you are not given a keyword, please check for any extra spaces or line breaks in your output and remove them.