What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
Answers were Sorted based on User's Feedback
Answer / sanish joseph
hey guys ans is 1.
coz (0==0)retuns 1as it is true;
| Is This Answer Correct ? | 16 Yes | 1 No |
Answer / g.narsing
answer is 1 because (0==0)which is a true value
true=1
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
Answer / ankesh kumar
Output of this question will be 1,
becoz on comparision(0==0) it will print the value true ie
1.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vivek satasia
Every expression or functon in programming paradigm works on
TRUE means 1 or FAlSE means o value.Ex- u can check this,
Suppose u write function like clrscr().It also returns
value.U can store it's value in a variable and can print
that variable.Like this expressio is first evaluated in from
of 0 or 1.
Here expression is 0==0 which is tru so it returns 1.
So,ans=1.
| Is This Answer Correct ? | 1 Yes | 0 No |
What does no cap mean?
What are the advantages of polymorphism?
features of OOPS
22 Answers Ness Technologies, Satyam,
What are the features of oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
what is difference b/w object based and object oriented programming language?
18 Answers Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,
Petrol pump mgt. system: To design a program that display an interface for the sale of the Petrol and then make the entries at the backend in the database.
I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.
What does and I oop and sksksk mean?
What is encapsulation and abstraction? How are they implemented in C++?
0 Answers Agilent, ZS Associates,
The type of variable a pointer points to must be the part of pointer's definition so that:
can you explain how to use JavaBean in Project