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


Please Help Members By Posting Answers For Below Questions

What is overriding in oop?

551


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?

1585


What is the purpose of enum?

585


How to call a non virtual function in the derived class by using base class pointer

5281


Write a c++ program to display pass and fail for three student using static member function

2820






What is the real time example of encapsulation?

602


How do you define social class?

604


write a C++ program for booking using constructor and destructor.

2055


What is class encapsulation?

604


What are the benefits of oop?

607


What does it mean when someone says I oop?

587


What is inheritance in oop?

605


What is destructor give example?

608


write a program that takes input in digits and display the result in words from 1 to 1000

1994


What is protected in oop?

604