What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / nitin gupta
the answer is 1 because of boolean ,if there is cout<<(0==1)
then the ans will be 0 and if there is cout<<"(0==0)" then
the ans is lvalue required
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is the difference between procedural programming and oops?
Can we create object of interface?
Which language is not a true object oriented programming language?
What is the diamond problem in inheritance?
what are the ways in which a constructors can be called?
How do you answer polymorphism?
How do you achieve runtime polymorphism?
Whats is abstraction in oops?
what type of questions
Why is polymorphism used?
What is overloading in oops?
Why do we use class in oops?
Can main method override?
What is cohesion in oop?
Write a c++ program to display pass and fail for three student using static member function