0

what would be the output?

main( ) { int k = 35 ; printf ( "\n%d %d %d", k == 35, k = 50, k > 40 ) ; return 0; }

26th Dec 2019, 5:44 AM
Raxstar AD
Raxstar AD - avatar
2 Answers
+ 1
Output is compiler dependent. No definite answer to your question, if you test run the code in Code Playground you will see a sequence point warning because the <k> variable is accessed and modified in a single sequence of execution point.
26th Dec 2019, 6:03 AM
Ipang
0
1 50 0 Because k==35 is true which is typed 1 in c And 50 And k>40 is false which typed 0 in c And new line firstly but I can't type it
26th Dec 2019, 5:51 AM
ycsvenom
ycsvenom - avatar