What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answer Posted / sumeet sharma
the ans is 1 because '==' operator on equality returns '1'
for true and returns '0' for false or inequality.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is for loop and its syntax?
Is abstract thinking intelligence?
What is pure oop?
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’.
What is destructor give example?
What does and I oop mean in text?
Are polymorphisms mutations?
What are objects in oop?
How do you define social class?
What is constructor in oop?
Give two or more real cenario of virtual function and vertual object
• What are the desirable attributes for memory managment?
What is destructor example?
What are the 3 pillars of oop?
What is encapsulation example?