given
unsigned int ui1=3,ui2=7;
what are the outputs of
a)ui1 & ui2
b)ui1 && ui2
c)ui1 | ui2
d)ui1 || ui2
i also need the justification for the answers
thank you
Answer Posted / subeetha
a) 3
&:bitwise and operator
3-011
7-111
3&7-011->3
b)1
&&:logical and
both numbers are non zero.So, operation Result is true
c)7
bitwise or
d)1
&&:logical Or
both numbers are non zero.So, operation Result is true
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is c++ library?
Can we sort map in c++?
What is the advantage of an external iterator.
Why do we use double in c++?
Who made c++?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is lazy initialization in c++?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Which software is used for c++ programming?
What is ifstream c++?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is a static member?
Explain the difference between using macro and inline functions?
What is c++ & why it is used?