#include<stdio.h>
int main()
{
int x=10,y=20;
if(x==y);
printf("\n %d %d",x,y);
return 0;
}
after the if statement there is no semicolon sir.If semicolon is there after the if statement what will be the output sir.
1
Expert's answer
2015-07-21T03:09:20-0400
If the semicolon is not there, the output will be just values of x and y. If it is, in the other hand, the output will be void. The reason is than the semicolon halts the execution of operators. It just does the if statement, and after that does printf function, independently.
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