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
explain sub-type and sub class? atleast u have differ it into 4 points?
What is the problem with multiple inheritance?
What is meant by multiple inheritance?
Can you explain polymorphism?
What is encapsulation in oop?
What is super in oop?
What is abstract class in oops?
What is use of overloading?
What is the real life example of polymorphism?
What is abstract class in oop?
What is multilevel inheritance?
Get me an image implementation program.
Is abstract thinking intelligence?
What is the main purpose of inheritance law?
Can we override main method?