#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?
Solution.
The program will output two empty lines, as x == 3 is True and printf("\n %",x) outputs two empty lines.
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C