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
When is dynamic checking necessary?
What information can an exception contain?
Can we define function inside main in c++?
What is the size of a vector?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is the best book for c++ beginners?
Explain what happens when a pointer is deleted twice?
What is one dimensional array in c++?
What is a far pointer? where we use it?
Define a nested class. Explain how it can be useful.
Why is main an int?
Tell me what are static member functions?
Explain the concept of dynamic allocation of memory?
What is the benefit of c++?
What is the difference between the parameter to a template and the parameter to a function?