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

What is for loop and its syntax?

606


Is abstract thinking intelligence?

603


What is pure oop?

603


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1788


What is destructor give example?

612






What does and I oop mean in text?

631


Are polymorphisms mutations?

711


What are objects in oop?

614


How do you define social class?

611


What is constructor in oop?

593


Give two or more real cenario of virtual function and vertual object

1863


• What are the desirable attributes for memory managment?

1734


What is destructor example?

607


What are the 3 pillars of oop?

626


What is encapsulation example?

554