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 the object serialization?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
What is the use of namespace std in C++?
What are the types of container classes?
What is the difference between a definition and a declaration?
Does c++ support exception handling?
What is main function in c++ with example?
What is a static element?
Can we use this pointer inside static member function?
When there is a global variable and local variable with the same name, how will you access the global variable?
Explain method of creating object in C++ ?
List the merits and demerits of declaring a nested class in C++?
Differentiate between an inspector and a mutator ?
Which bitwise operator is used to check whether a particular bit is on or off?
Refer to a name of class or function that is defined within a namespace?