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

Which language is pure oop?

0 Answers  


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

0 Answers  


In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance

1 Answers  


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

2 Answers   TCS,


Why is object oriented programming so hard?

0 Answers  


write a program which best describes polymorphism in real world?

2 Answers   CTS, Infosys, NexGen,


what is mean by design pattern

4 Answers  


What is the different between Applet and Application?

2 Answers  


WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 Answers  


In which cases you use override and new base?

2 Answers  


What are the three parts of a simple empty class?

0 Answers  


What is the renewal class?

0 Answers   Ebix, IBM,


Categories