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
Can a constructor return a value?
What are shallow and deep copy?
How can you link a c++ program to c functions?
What is the use of 'using' declaration in c++?
How many ways can a variable be initialized into in C++?
What is the use of 'this' pointer?
What are virtual constructors/destructors?
What is time_t c++?
Can c++ be faster than c?
What is the use of seekg in c++?
What kind of jobs can I get with c++?
Define namespace in c++?
What is the best ide for c++?
When should we use multiple inheritance?
What is class syntax c++?