What happens with the following program?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | #include<stdio.h>
int main(){
struct emp{
char name[25];
int age;
float sal;
};
struct emp e[2];
int i=0;
for(i=0; i<2; i++)
scanf("%s %d %f", e[i].name, &e[i].age, &e[i].sal);
for(i=0; i<2; i++)
scanf("%s %d %f", e[i].name, e[i].age, e[i].sal);
return 0;
}
|