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
How can you tell what shell you are running on unix system?
What is pointer to array in c++?
How many keywords are used in c++?
What is the use of endl?
What is a list c++?
Define a constructor - what it is and how it might be called (2 methods)?
What are the new features that iso/ansi c++ has added to original c++ specifications?
What is the main function c++?
How do I get good at c++ programming?
Is c or c++ more useful?
What's the "software peter principleā?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What is the latest c++ version?
How many types of comments are there in c++?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?