A
Q. What will be output if you will compile and execute the following c code?
Code:
void main()
{
int i=0;
if(i==0){
i=((5,(i=3)),i=1);
printf(“%d”,i);
}
else
printf(“equal”);
}
{
int i=0;
if(i==0){
i=((5,(i=3)),i=1);
printf(“%d”,i);
}
else
printf(“equal”);
}
- Correct Answer - Option(A)
- Views: 31
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.