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

Question #53572
#include<stdio.h>
int main()
{
int x=15;
printf("\n %d %d %d",x!=15,x=20,x<30);
return 0;
}

In this program x is already assigned the value 15. what will be the output and explain sir.
1
Expert's answer
2015-07-22T01:29:53-0400
The output of the program is not defined by standard. Because output of this program depends on the order in which the function arguments are evaluated. In this case “,” is a separator of function arguments and this is not a sequence point.

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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS