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

What is protected in oop?

1026


How is class defined?

1083


What are classes oop?

984


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2097


What is this pointer in oop?

1028


What is purpose of inheritance?

1068


What is stream in oop?

1251


What is the significance of classes in oop?

1084


What is difference between polymorphism and inheritance?

1032


What do you mean by abstraction?

1032


Can private class be inherited?

1131


What is inheritance write a program to show use of inheritance?

1103


What is class encapsulation?

1042


Can you inherit a private class?

1069


What makes a language oop?

1018