You are on page 1of 1

STRUCTURES PROGRAMMING EXAMPLES

1) Write a program to store the roll no. (Starting from 1), name and
age of 5 students and then print the details of the student with roll
no. 2.

2) Write a c program with an appropriate structure definition and


variable declaration to read and display information about 5
employees using nested structure. Consider the following fields
like ename, empid, DOJ( date, month, year} and salary{basic da,
hra}.

You might also like