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 is difference between malloc()/free() and new/delete?
what are Access specifiers in C++ class? What are the types?
Write a program to find the Fibonacci series recursively.
What is the function of I/O library in C++ ?
What are stacks?
How will you call C functions from C ++ and vice-versa?
Explain the volatile and mutable keywords.
What is abstraction in c++ with example?
which of the following is not an secondary constant a) array b) real c) union
What do you mean by vtable and vptr in c++?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What do you mean by funtion prototype?
Are vectors faster than arrays?
Write a function that swaps the values of two integers, using int* as the argument type?
What is math h in c++?