Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How do you define social class?

1080


What is multilevel inheritance?

1206


What is polymorphism what is it for and how is it used?

1023


what type of question are asked in thoughtworks pair programming round ?

2221


Why is polymorphism needed?

1078


What is object and class in oops?

1075


Why is object oriented programming so hard?

1090


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1642


What is destructor example?

1055


What is purpose of inheritance?

1115


What is object in oops?

1078


What are constructors in oop?

1196


Is this job good for future? can do this job post grduate student?

2166


Write a program to sort the number with different sorts in one program ??

2380


What is the real life example of polymorphism?

1178