What does the code "cout<<(0==0);" print?




1) 0


2) 1


3) Compiler error: Lvalue required

Answer Posted / g.narsing

answer is 1 because (0==0)which is a true value
true=1

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4234


Can you explain polymorphism?

576


What is abstraction in oops?

578


Why do we use oops?

589


what is the 3 types of system development life cycle

2429






write a programe to calculate the simple intrest and compund intrest using by function overlading

1662


What is abstraction encapsulation?

653


What is an advantage of polymorphism?

589


How to hide the base class functionality in Inheritance?

634


What is polymorphism in oops?

556


What is polymorphism in oop example?

512


Why multiple inheritance is not allowed?

581


What is the difference between procedural programming and oops?

548


How do you define social class?

594


program for insertion ,deletion,sorting in double link list

2276