Question
#include<stdio.h>
int main()
struct emp
{
char name[25];
int age;
float sa1;
};
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].sa1);
for(i=0; i<2; i++)
scanf("%s %d %f" , e[i].name, e[i].age, e[i].sa1);
return 0;
}
Which of the following statements correct about the below program?
#include<stdio.h>
int main()
struct emp
{
char name[25];
int age;
float sa1;
};
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].sa1);
for(i=0; i<2; i++)
scanf("%s %d %f" , e[i].name, e[i].age, e[i].sa1);
return 0;
}
Answer: Option C
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
Submit Solution