What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / rajendra
There is a possibility of getting "compilation error" .
because after cout statement we are not using any
conditional statements to check the above condition even
though it == is there ....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why oops is important?
What is the difference between a mixin and inheritance?
What is overriding in oops?
What is a class and object?
What is byval and byref? What are differences between them?
Why is static class not inherited?
Why is polymorphism important in oop?
What is encapsulation c#?
What are constructors in oop?
What is this pointer in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
write string class as your own class in java without using any built-in function
What is the important feature of inheritance?
What are the benefits of polymorphism?