MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
Bitwise Operators
→
General
→
Left shifting an unsigned int or char by 1 is alwa...
1.
Left shifting an unsigned int or char by 1 is always equivalent to multiplying it by 2.
A.
True
B.
False
Answer» B. False
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