What is the output of the program?
void main ( )
{
char c[5]; int x;
}abc[];
abc[]={“lird”,10,”labs”,20,”research”,30};
printf(“%s”,abc[1].c);
printf(“,%d”,abc[2].x);
}
a) error
b) labs,20
c) labs,30
d) labs,10
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Correct option: a) error
reason: you cannot declare structure as unsized array.