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




1) 0


2) 1


3) Compiler error: Lvalue required

Answer Posted / ankesh kumar

Output of this question will be 1,
becoz on comparision(0==0) it will print the value true ie
1.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is destructor used?

578


which feature are not hold visual basic of oop?

1721


What are the important components of cohesion?

550


What is inheritance and how many types of inheritance?

612


Which language is pure oop?

545






Advantage and disadvantage of routing in telecom sector

782


What is polymorphism what are the different types of polymorphism?

558


Why multiple inheritance is not allowed?

581


Why is encapsulation used?

577


Can private class be inherited?

615


What is the significance of classes in oop?

585


Can we override main method?

599


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

1650


What does it mean when someone says I oop?

576


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1891