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
Explain register storage specifier.
What is low level language in simple words?
Why do we use double in c++?
What is c++ and its uses?
What is object in c++ wikipedia?
What is a dangling pointer in c++?
what is a reference variable in C++?
Why is c++ difficult?
What is the difference between #define debug 0 and #undef debug?
How important is c++?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What are friend classes? What are advantages of using friend classes?
What are manipulators used for?
Can turbo c++ run c program?