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
How to improve object oriented design skills?
What are the 4 pillars of oop?
Why is polymorphism used?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can main method override?
c++ program to swap the objects of two different classes
Why is there no multiple inheritance?
How to use CMutex, CSemaphore in VC++ MFC
What is overloading in oop?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is overriding in oop?
Prepare me a program for the animation of train
What is abstraction example?
How Do you Code Composition and Aggregation in C++ ?
Explain the concepts involved in Object Oriented programming.