MCQOPTIONS
Bookmark
Saved Bookmarks
→
Bitwise Operators
→
General
→
Consider the given statement: int x = 10 ^ 2 What...
1.
Consider the given statement: int x = 10 ^ 2 What will be the value of x?
A.
5
B.
6
C.
7
D.
8
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the program? #include int main() { unsigned int res; res = (64 >>(2+1-2)) & (~(1<<2>
What will be the output of the program? #include int main() { char c=48; int i, mask=01; for(i=1; i<=5; i++) { printf("%c", c|mask); mask = mask<<1>
What will be the output of the following C code? #include void main() { int x = 4, y, z; y = --x; z = x--; printf("%d%d%d", x, y, z); }
What will be the output of the following C code? #include void main() { int x = 97; int y = sizeof(x++); printf("x is %d", x); }
What will be the output of the following C code? #include int main() { unsigned int a = 10; a = ~a; printf("%d n", a); }
What will be the output of the following C code? #include int main() { int a = 2; if (a >> 1) printf("%d n", a); }
What will be the output of the following C code? #include int main() { int c = 2 ^ 3; printf("%d n", c); }
What will be the output of the following C code? #include int main() { int y = 1; if (y & (y = 2)) printf("true %d n", y); else printf("false %d n", y); }
What will be the output of the following C code? #include int main() { int x = -2; if (!0 == 1) printf("yes n"); else printf("no n"); }
What will be the output of the following C code? #include int main() { int y = 0; if (1 |(y = 1)) printf("y is %d n", y); else printf("%d n", y); }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies