What does the code "cout<<(0==0);" print?




1) 0


2) 1


3) Compiler error: Lvalue required

Answer Posted / sanish joseph

hey guys ans is 1.
coz (0==0)retuns 1as it is true;

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an example of genetic polymorphism?

657


What is destructor give example?

612


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1952


What does and I oop and sksksk mean?

663


What is a class oop?

602






What is polymorphism and example?

598


How Do you Code Composition and Aggregation in C++ ?

24232


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1667


What is the difference between encapsulation and polymorphism?

604


How do you use inheritance in unity?

595


Why interface is used?

559


Write a program to reverse a string using recursive function?

1802


What is polymorphism and why is it important?

566


Can a destructor be called directly?

613


What is encapsulation in oops?

545