) int main()
{
struct emp
{
char name[20];
int empno;
};
struct emp e1 = {"harrypotter", 1311};
struct emp e2 = e1;
if (e1==e2)
printf ("e1 and e2 are same");
else
printf ("e1 and e2 are different");
}
Choice:
a)e1 and e2 are same
b)e1 and e2 are different
c)Error
d)Segmentation fault
{
struct emp
{
char name[20];
int empno;
};
struct emp e1 = {"harrypotter", 1311};
struct emp e2 = e1;
if (e1==e2)
printf ("e1 and e2 are same");
else
printf ("e1 and e2 are different");
}
Choice:
a)e1 and e2 are same
b)e1 and e2 are different
c)Error
d)Segmentation fault