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
Does dev c++ support c++ 11?
What is a manipulative person?
When can I use a forward declaration?
What do the keywords volatile and mean mutable?
Why do we use pointers in c++?
What is isdigit c++?
What are the 4 types of library?
What is the cout in c++?
What is the average salary of a c++ programmer?
Explain binary search.
What is the best free c++ compiler for windows?
What is #include ctype h in c++?
How to declare a function pointer?
Describe new operator and delete operator?
What are stacks?