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
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How do you define social class?
write a program to find 2^n+1 ?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is this pointer in oop?
What are the important components of cohesion?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What are the features of oop?
Why do we use polymorphism in oops?
What is overriding in oops?
What is oops and its features?
what is graphics
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Can private class be inherited?