The document discusses C language structures and unions. It provides examples of using structures to store employee data like name, age, and salary. It also discusses passing structures as function arguments and returning structures from functions. Examples are given for initializing structures, arrays of structures, and nested structures. The document also covers using unions to store student data and calculating the size of structures and unions with different data types. It notes that the time to complete the examples is 6 hours.
The document discusses C language structures and unions. It provides examples of using structures to store employee data like name, age, and salary. It also discusses passing structures as function arguments and returning structures from functions. Examples are given for initializing structures, arrays of structures, and nested structures. The document also covers using unions to store student data and calculating the size of structures and unions with different data types. It notes that the time to complete the examples is 6 hours.
The document discusses C language structures and unions. It provides examples of using structures to store employee data like name, age, and salary. It also discusses passing structures as function arguments and returning structures from functions. Examples are given for initializing structures, arrays of structures, and nested structures. The document also covers using unions to store student data and calculating the size of structures and unions with different data types. It notes that the time to complete the examples is 6 hours.
any organization initialization and taking user method in the structure. 2.Enter name,age,salary of 100 employees of any organization taking user method in the structure. 3.Enter name,age,salary of one employee of any organization and make a nested structure named servant with fields age and salay taking user method in the structure. Also find the size of all structures
4.Find the size of structure with field char and int
data type. 5.Enter name,age,salary of three employees of any organization initialization and taking user method in the structure using with function. 6.WAP to show the structure pass in the function as an arguments
are sent to a function. 8.WAP to show passing structure variables as a arguments. 9.WAP to understand how a structure variables is returned from a function. 10.WAP to show passing array of structures as argument. 11.WAP to find out and print the grade of student using structures.
college initialization and taking user method in the union. 2.Enter name,age,marks of 100 students of any college taking user method in the union. 3.Find the size of union with field char and int data type.