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 is new() different from malloc()?
Mention the ways in which parameterized can be invoked.
Why c++ is called oop?
what is the use of void main() in C++ language?
Describe new operator and delete operator?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What are the advantages of using friend classes?
What is the object serialization?
Define upcasting.
Explain function overloading
Discuss the possibilities related to the termination of a program before entering the mainq method?
What is the use of 'this' pointer?
What are the types of array in c++?
What are the advantages of early binding?
Explain how the virtual base class is different from the conventional base classes of the opps.