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


Please Help Members By Posting Answers For Below Questions

What should main() return in c and c++?

529


Describe delete operator?

625


What is a Default constructor?

924


Why is c++ a mid-level programming language?

596


Define a pdb file.

642






What does return 0 do in c++?

580


How is computer programming useful in real life?

597


What is the limitation of cin while taking input for character array?

1458


Write a code/algo to find the frequency of each element in an array?

609


How did c++ start?

616


What are shallow and deep copy?

601


What is a constant reference?

624


daily Routine of father

914


Is it possible for a member function to use delete this?

576


What is the difference between prefix and postfix versions of operator++()?

597