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 difference between data abstraction and encapsulation?
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?
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.
What is the difference between static polymorphism and dynamic polymorphism?
Why do we use polymorphism in oops?
Can main method override?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is the highest level of cohesion?
what's the basic's in dot net
What is object-oriented programming? Webopedia definition
What does it mean when someone says I oop?
What is debug class?what is trace class? What differences are between them? With examples.
What is cohesion in oop?
What is polymorphism programming?
What is persistence in oop?