Assume that ip has been declared to be a pointer to int and that enrollment has been declared to be an array of 20 elements. Assume also that section has been declared to be an int and has been initialized to some value between 5 and 10. Write a statement that makes ip point to the element in the array indexed by section.
.
.
Click on the title for the solution
.
.
.
Click on the title for the solution
.
.
This is the answer:
ip=&enrollment[0]+section;
Comments
Post a Comment