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
What is the first name of c++?
What is the difference between C and CPP?
Can class objects be passed as function arguments?
Describe about storage allocation and scope of global, extern, static, local and register variables?
Differentiate between the manipulator and setf( ) function?
What is boyce codd normal form in c++?
What gives the current position of the put pointer?
Which programming language is best to learn first?
Which ide is best for c++?
How are virtual functions implemented in c++?
Is c# written in c++?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
What is main function in c++ with example?
How do you clear a map in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?