What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / vivek satasia
Every expression or functon in programming paradigm works on
TRUE means 1 or FAlSE means o value.Ex- u can check this,
Suppose u write function like clrscr().It also returns
value.U can store it's value in a variable and can print
that variable.Like this expressio is first evaluated in from
of 0 or 1.
Here expression is 0==0 which is tru so it returns 1.
So,ans=1.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the important feature of inheritance?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What are the benefits of oop?
What is overriding vs overloading?
What is pointer in oop?
#include
What is class and object with example?
What is the real life example of polymorphism?
Can abstract class have normal methods?
which feature are not hold visual basic of oop?
What is polymorphism and types?
What is encapsulation selenium?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< How to use CMutex, CSemaphore in VC++ MFC What is abstraction and encapsulation?