#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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment