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
What should main() return in c and c++?
Describe delete operator?
What is a Default constructor?
Why is c++ a mid-level programming language?
Define a pdb file.
What does return 0 do in c++?
How is computer programming useful in real life?
What is the limitation of cin while taking input for character array?
Write a code/algo to find the frequency of each element in an array?
How did c++ start?
What are shallow and deep copy?
What is a constant reference?
daily Routine of father
Is it possible for a member function to use delete this?
What is the difference between prefix and postfix versions of operator++()?