Structure and Pointers
Learn how to create a pointer to a structure and an array of structures in C.
What is a structure pointer?
Example program
The program given below demonstrates the use of a structure pointer.
Explanation
In the code given above, ptr is a pointer to a structure, not a structure variable. Therefore, we cannot use ...