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
write a C++ program for booking using constructor and destructor.
What is difference between pop and oop?
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 is a function in oop?
Is enum a class?
What is coupling in oops?
What does oop mean in snapchat?
Why is object oriented programming so hard?
What is advantage of inheritance?
What is the main feature of oop?
What is polymorphism explain?
What is overloading and its types?
What is oops and its features?
What is class and example?
Explain the advantages of inheritance.