#include<stdio.h>
int main()
{
int x=3,y=5;
if(x==3)
printf("\n %",x);
else;
printf("\n %d",y);
return 0;
}
Actually there will be no semicolon at if or else statement. In this program semicolon is there at else statement. Can you please provide the output and explanation?
1
Expert's answer
2015-07-22T01:26:32-0400
Solution. The program will output two empty lines, as x == 3 is True and printf("\n %",x) outputs two empty lines.
Comments
Leave a comment