What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / sneha joshi.
There will be a compilation error as we are using "(" after insertion operator "<<". We are not assigning this value to any boolean typr variable, so we cant get answer as 0 or 1.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
class type to basic type conversion
What is overriding vs overloading?
write a program to find 2^n+1 ?
Can we have inheritance without polymorphism?
What is oops with example?
What are the 4 pillars of oop?
Whats is abstraction in oops?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
Can static class have constructor?
What is this pointer in oop?
What is polymorphism and types?
What is the main purpose of inheritance law?
What is the renewal class?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What does enum stand for?