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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Explain the uses oof nested class?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
When should you use global variables?
What is the difference between operator new and the new operator?
What is class definition in c++ ?
What happens if an exception is throws from an object's constructor and from object's destructor?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Write about the use of the virtual destructor?
Is it possible for a member function to use delete this?
Define virtual constructor.