NIELIT O Level Solved Paper
January 2016
C Language
Q8 b) Write a program to create a structure Employee having empCode, name, department, address and salary as its members. Read the details for 10 employees and then display them.
Solution :
#include<stdio.h>
#include<conio.h>
struct
stu
{
int empcode;
char name[20];
char dept[20];
char address[20];
int sal;
};