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 do you define social class?
What is multilevel inheritance?
What is polymorphism what is it for and how is it used?
what type of question are asked in thoughtworks pair programming round ?
Why is polymorphism needed?
What is object and class in oops?
Why is object oriented programming so hard?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is destructor example?
What is purpose of inheritance?
What is object in oops?
What are constructors in oop?
Is this job good for future? can do this job post grduate student?
Write a program to sort the number with different sorts in one program ??
What is the real life example of polymorphism?