65 767
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #53568 in C for rajashree g.s.

Question #53568
#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?
Expert's answer
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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions