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

Answers were Sorted based on User's Feedback



What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Co..

Answer / sneha joshi.

There will be a compilation error as we are using "(" after insertion operator "<<". We are not assigning this value to any boolean typr variable, so we cant get answer as 0 or 1.

Is This Answer Correct ?    0 Yes 1 No

What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Co..

Answer / 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

What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Co..

Answer / deepanker aggarwal

the answer is 0 guys

Is This Answer Correct ?    2 Yes 9 No

What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Co..

Answer / shailaja

it will print 0

Is This Answer Correct ?    4 Yes 13 No

What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Co..

Answer / guest

2

Is This Answer Correct ?    1 Yes 11 No

Post New Answer

More OOPS Interview Questions

How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

1 Answers   IntraLogic,


What is persistence in oop?

0 Answers  


What are the access specifiers avaible in c++?

4 Answers  


Can an interface inherit a class?

0 Answers  


what are the different types of qualifier in java?

0 Answers   TCS,


what is ltti

1 Answers   Unisys,


what is the use of mutable key word

3 Answers   HCL,


What are the main differences between procedure oriented languages and object oriented languages?

9 Answers   IBM, Infosys, Wipro,


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


Write a macro for swapping integers

5 Answers  


Difference between vector and array

2 Answers  


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


Categories