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 difference between data abstraction and encapsulation?

618


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?

1582


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1459


What is the difference between static polymorphism and dynamic polymorphism?

585


Why do we use polymorphism in oops?

581






Can main method override?

585


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3842


What is the highest level of cohesion?

579


what's the basic's in dot net

1740


What is object-oriented programming? Webopedia definition

725


What does it mean when someone says I oop?

587


What is debug class?what is trace class? What differences are between them? With examples.

1611


What is cohesion in oop?

624


What is polymorphism programming?

605


What is persistence in oop?

673