What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / nitin gupta
the answer is 1 because of boolean ,if there is cout<<(0==1)
then the ans will be 0 and if there is cout<<"(0==0)" then
the ans is lvalue required
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Can we override main method?
What is property in oops?
Why is oop better than procedural?
any one please tell me the purpose of operator overloading
Why multiple inheritance is not possible?
How is polymorphism achieved?
What is a class and object?
What is oops with example?
Why is destructor used?
What is the use of oops?
What is polymorphism in oops with example?
What do you mean by Encapsulation?
What is difference between polymorphism and inheritance?
Why multiple inheritance is not allowed?
Why we use classes in oop?