What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / sneha joshi.
There will be a compilation error as we are using "(" after insertion operator "<<". We are not assigning this value to any boolean typr variable, so we cant get answer as 0 or 1.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is difference between data abstraction and encapsulation?
Why do we need oop?
class type to basic type conversion
Can a destructor be called directly?
What is meant by oops concept?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is a superclass in oop?
What is object and example?
What is static modifier?
How is class defined?
What is polymorphism what is it for and how is it used?
What is advantage of inheritance?
• What are the desirable attributes for memory managment?
what is graphics
What is the point of polymorphism?