What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / ankesh kumar
Output of this question will be 1,
becoz on comparision(0==0) it will print the value true ie
1.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is overriding 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 the purpose of enum?
How to call a non virtual function in the derived class by using base class pointer
Write a c++ program to display pass and fail for three student using static member function
What is the real time example of encapsulation?
How do you define social class?
write a C++ program for booking using constructor and destructor.
What is class encapsulation?
What are the benefits of oop?
What does it mean when someone says I oop?
What is inheritance in oop?
What is destructor give example?
write a program that takes input in digits and display the result in words from 1 to 1000
What is protected in oop?