Answer to Question #53569 in C for rajashree g.s.
Question #53569
#include<stdio.h>
int main()
{
int k=35;
printf("\n %d %d %d",k==35,k=50,k>40);
return 0;
}
In this program k is already assigned the value 35.what will be the output sir. Please explain it.
int main()
{
int k=35;
printf("\n %d %d %d",k==35,k=50,k>40);
return 0;
}
In this program k is already assigned the value 35.what will be the output sir. Please explain it.
Expert's answer
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 orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment