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 abstract class in oop?
What is for loop and its syntax?
What are the benefits of polymorphism?
What are the important components of cohesion?
Can a varargs method be overloaded?
What does enum stand for?
Why is object oriented programming so hard?
What is an advantage of polymorphism?
Who invented oop?
#include
What is the significance of classes in oop?
What does and I oop and sksksk mean?
which feature are not hold visual basic of oop?
Is data hiding and abstraction same?
What are functions in oop?