C Structures

Back To C Index


1. program to create a structure student with members rollno, name and marks. structure variable is initialized with values (1,abcdef,90) - Code
2. program to create a structure student with members (rollno, name,marks and clas) and input values from user and then display the values - Code
3. program to create a structure employee with members (ecode, ename,salary and designation) and input values from user and then display the values - Code
4. program to create a structure book with members (bookid, bookname,author and price) and input values from user and then display the values - Code
5. program to create a structure movie with members(movieid, moviename,star1,star2 and price) and input values from user and then display the values - Code
6. program to create a structure student and calculate percentage based on marks (example of array within a structure) - Code
7. program to create a structure student and creating array of structure of 3 variables (example of array of structure variables) - Code
8. program to create a structure to demonstrate complex number with members (real and imaginary) - Code
9. program to create a structure distance with members (feet and inches), two structure variables are created - Code