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 / nitin gupta

the answer is 1 because of boolean ,if there is cout<<(0==1)
then the ans will be 0 and if there is cout<<"(0==0)" then
the ans is lvalue required

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override main method?

1282


What is property in oops?

1132


Why is oop better than procedural?

1145


any one please tell me the purpose of operator overloading

2444


Why multiple inheritance is not possible?

1122


How is polymorphism achieved?

1114


What is a class and object?

1110


What is oops with example?

1104


Why is destructor used?

1081


What is the use of oops?

1116


What is polymorphism in oops with example?

1107


What do you mean by Encapsulation?

1140


What is difference between polymorphism and inheritance?

1135


Why multiple inheritance is not allowed?

1255


Why we use classes in oop?

1098