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




1) 0


2) 1


3) Compiler error: Lvalue required

Answer Posted / g.narsing

answer is 1 because (0==0)which is a true value
true=1

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use polymorphism in oops?

583


What is difference between data abstraction and encapsulation?

619


How do you use inheritance in unity?

593


What is basic concept of oop?

700


What is destructor example?

597






What is oops with example?

566


What is pointer in oop?

539


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1654


What is the full form of oops?

612


What is polymorphism in oops with example?

533


What is multilevel inheritance explain with example?

628


What is oops and its features?

591


which feature are not hold visual basic of oop?

1725


What is oops in simple words?

585


What are two types of polymorphism?

614