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
How to demonstrate the use of a variable?
Explain virtual destructor?
What is constructor c++?
Can non graphic characters be used and processed in C++?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What is insertion sorting?
Why should you learn c++?
daily Routine of father
What is a .h file c++?
What is meant by a delegate?
Is c++ the most powerful language?
What do you understand by zombie objects in c++?
Can a function take variable length arguments, if yes, how?
Explain function overloading
Which operator cannot overload?