edited by
182 views

1 Answer

Best answer
4 votes
4 votes
++myinc returns 1 and --myinc returns 0.

So, if condition is FALSE and final value of myinc is 0.
selected by
Answer:

Related questions

4 votes
4 votes
1 answer
1
gatecse asked Jul 26, 2020
277 views
What will be the output of the following C program?#include<stdio.h int main() { int myinc = -1; if(++myinc || myinc) { myinc ; } printf("%d", myinc); }
3 votes
3 votes
2 answers
2
gatecse asked Jul 26, 2020
382 views
What will be the output of the following C program?#include<stdio.h int main() { int a = 1, b = 0; printf("%d", ~a | ~b & a && ++b - a); }
5 votes
5 votes
1 answer
3
gatecse asked Jul 26, 2020
414 views
What will be the output of the following C program?#include<stdio.h int main() { int a, b = 2, c = 3; a = b, c++; printf("%d %d %d", a, b, c); }Compiler Error$3\; 3\; 4$$...
5 votes
5 votes
1 answer
4
gatecse asked Jul 26, 2020
293 views
if (x != 0) a = b; else a = c;What of the following can functionally substitute the if-else statement given above? a = (!!x)*b || c; a = b || c; a = (x>0)? c : b; a = (!!...