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?
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.

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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS