Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Explain the output of these C codes

$
0
0

#include <stdio.h> int main () { int i = 4; int x = ++i + ++i + ++i; printf ("%d", x); return 0; }

Output : 19

#include <stdio.h> int main () { int i = 0; while (i++ <= 10); printf ("%d", i); return 0; }

Output : 12


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>