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 / swapna
a) 3
&:bitwise and operator
3-011
7-111
3&7-011->3
b)any positive value
&&-logical and
both numbers are are positive.so and operation results in
true-so any positive value
c)7
bitwise or
d)any positive value
logical or
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is wrapper class in c++?
How can we access protected and private members of a class?
Tell me can a pure virtual function have an implementation?
How do you find out if a linked-list has an end?
What are maps in c++?
what is COPY CONSTRUCTOR and what is it used for?
What is the difference between the compiler and the preprocessor?
Can we declare a base-class destructor as virtual?
What is c++ similar to?
What are structures and unions?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Is java the same as c++?
What is meant by iomanip in c++?
What is a dangling pointer in c++?
What is struct c++?