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
Where can I run c++ program?
what is COPY CONSTRUCTOR and what is it used for?
What is pointer to member?
Is map thread safe c++?
Explain the term memory alignment?
what are Access specifiers in C++ class? What are the types?
How can we read/write Structures from/to data files?
Can you Mention some Application of C/C++?
Explain pass by value and pass by reference.
Is c++ primer good for beginners?
what is VOID?
Which programming language's unsatisfactory performance led to the discovery of c++?
What is the basic structure of a c++ program?
Why c++ is better than c language?
Which function should be used to free the memory allocated by calloc()?