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

What is the difference between procedural programming and oops?

1140


Can we create object of interface?

1138


Which language is not a true object oriented programming language?

1141


What is the diamond problem in inheritance?

1144


what are the ways in which a constructors can be called?

2140


How do you answer polymorphism?

1071


How do you achieve runtime polymorphism?

1056


Whats is abstraction in oops?

1087


what type of questions

2130


Why is polymorphism used?

1050


What is overloading in oops?

1170


Why do we use class in oops?

971


Can main method override?

1117


What is cohesion in oop?

1067


Write a c++ program to display pass and fail for three student using static member function

3408