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 to improve object oriented design skills?

1067


What are the 4 pillars of oop?

1206


Why is polymorphism used?

1089


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2684


Can main method override?

1154


c++ program to swap the objects of two different classes

2475


Why is there no multiple inheritance?

1065


How to use CMutex, CSemaphore in VC++ MFC

4835


What is overloading in oop?

1050


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

2112


What is overriding in oop?

1100


Prepare me a program for the animation of train

2539


What is abstraction example?

1158


How Do you Code Composition and Aggregation in C++ ?

25615


Explain the concepts involved in Object Oriented programming.

1317