Arjun Suresh (talk | contribs) (Created page with " <quiz display="simple"> {'''What will be the output??''' <syntaxhighlight lang="c"> #include <stdio.h> #include <string.h> int main() { int x = 8, y = 1; switch(x--, y...") |
(No difference)
|
<quiz display="simple"> {What will be the output?? <syntaxhighlight lang="c">
int main() {
int x = 8, y = 1; switch(x--, y++) { case 1: x*=8; case 2: y*= x/=2; case 3: case 4: y--; default: x+=5; } printf("%d %d", x, y);
} </syntaxhighlight> |type="()" /} -64 2 -64 1 +33 55 -33 56 ||
</quiz>
<quiz display="simple"> {What will be the output?? <syntaxhighlight lang="c">
int main() {
int x = 8, y = 1; switch(x--, y++) { case 1: x*=8; case 2: y*= x/=2; case 3: case 4: y--; default: x+=5; } printf("%d %d", x, y);
} </syntaxhighlight> |type="()" /} -64 2 -64 1 +33 55 -33 56 ||
</quiz>