254 views
1 votes
1 votes
main()

{

int a=2;

if(a==2)

{

a=~a+2<<1;

printf("%d",a);

}

else

{

break;

}

a)-3

b)-2

c)1

d)compile error

1 Answer

Related questions

4 votes
4 votes
1 answer
2
ritwik_07 asked Jun 10, 2023
423 views
#include<stdio.h #include<string.h #define MAX(x, y) ((x) (y) ? (x) : (y)) int main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i, j, k); return ...
0 votes
0 votes
1 answer
3