Question:
Which expression always return true? Which always return false?
Answer:
expression if (a=0) always return false
expression if (a=1) always return true Source: CoolInterview.com
expression if(1) always return true expression if(0) always return false Source: CoolInterview.com
Answered by: girija | Date: 10/1/2009
| Contact girija
Here d question exactly means the statement which will always irrespective of any condition and the statement which will never execute.......so here if we use if(1) it will always execute or will return true and the statement if(0) will never execute or will always return false Source: CoolInterview.com
Answered by: Vikram Ojha | Date: 1/31/2010
| Contact Vikram Ojha
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|