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
What does enum stand for?
What is the problem with multiple inheritance?
What is the difference between encapsulation and polymorphism?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is difference between pop and oop?
what is the 3 types of system development life cycle
What are benefits of oop?
Can static class have constructor?
What is destructor example?
What is cohesion in oop?
class type to basic type conversion
Can we define a class within the interface?
2. Give the different notations for the class.\
What makes a language oop?
Why is there no multiple inheritance?