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

Why oops is important?

0 Answers  


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


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

1 Answers   IntraLogic,


why we call c++ is object oriented lanaguage

7 Answers   HCL,


why oops need in programming

7 Answers   TCS,


Why do we use encapsulation in oops?

0 Answers  


I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe

1 Answers  


what isthe difference between c structure and c++ class

5 Answers  


What are properties in oop?

0 Answers  


What is the oops and benefits of oops programming?

0 Answers  


What is purpose of inheritance?

0 Answers  


what is object slicing

3 Answers   TCS,


Categories