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


Please Help Members By Posting Answers For Below Questions

What does enum stand for?

617


What is the problem with multiple inheritance?

586


What is the difference between encapsulation and polymorphism?

596


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.

6485


What is difference between pop and oop?

609






what is the 3 types of system development life cycle

2435


What are benefits of oop?

639


Can static class have constructor?

585


What is destructor example?

597


What is cohesion in oop?

624


class type to basic type conversion

1839


Can we define a class within the interface?

555


2. Give the different notations for the class.\

1594


What makes a language oop?

598


Why is there no multiple inheritance?

570