Write a C Program to understand how the structure variable is returned from a function. Here’s a Simple Program to check how structure variable returned from 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 the structure variable is returned from a function which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :