→operator to access fields in a
In this section you'll complete a program that creates and initializes two struct variables, one a regular struct variable and the other dynamically allocated through a pointer. As written the code initializes the first struct but the second is left for you to do. Also, there is a
print_student function that takes a pointer to
struct studentT as an argument (is this call by value or call by reference?) but this function is incomplete.
…add code here…and I recommend completing the initialization of the second struct (using a pointer), in the
mainfunction, first. Fill in any values you like for each field of the struct.
As always, if you run out of time or are working remotely, send me an e-mail containing screenshots of the working programs by the end of the day for full credit.