Write a C Program to show an example how pointer to structure is sent to function. Here’s a Simple Program to check how pointer to structure variable is sent to function in C Programming Language.
This program is used to store and access “name, roll no. and marks ” for many students using structures members.
C Structure :
Accessing Structure Members :
To access any member of a structure, we use the member access operator (.). The member access operator is coded as a period between the structure variable name and the structure member that we wish to access.
Below is the source code for C Program to understand how pointer to structure variable is sent to function which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
need an explanation for this answer? contact us directly to get an explanation for this answer