What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / sumeet sharma
the ans is 1 because '==' operator on equality returns '1'
for true and returns '0' for false or inequality.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is protected in oop?
How is class defined?
What are classes oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is this pointer in oop?
What is purpose of inheritance?
What is stream in oop?
What is the significance of classes in oop?
What is difference between polymorphism and inheritance?
What do you mean by abstraction?
Can private class be inherited?
What is inheritance write a program to show use of inheritance?
What is class encapsulation?
Can you inherit a private class?
What makes a language oop?