i have seen at many places where condition is to be evaluated..
if(a)
{}
if(!a)
{}
for(i=0;!a;i++)
{}
if(1){}
if(!9){}
and things lyk that
can u tell me wat r the various types of conditions of if() n wat datatypes should be "a" for the above cases...???
and i knw the basic functionality of if()..!!!
|
Go4Expert Founder
|
![]() |
| 14Nov2012,10:11 | #2 |
|
Can you clarify in which programming language you have seen such codes?
|
|
Go4Expert Member
|
|
| 14Nov2012,12:15 | #3 |
|
Go4Expert Founder
|
![]() |
| 14Nov2012,13:09 | #4 |
|
Moved thread to C Programming and each of those if statements means checking if the condition is true or false. Integer is 0 is equivalent to false.
|
|
Go4Expert Member
|
|
| 14Nov2012,16:09 | #5 |
|
Hello IndiraP
Suppose I have the following Code:
int a=5 if(a) ... |
|
Go4Expert Member
|
|
| 16Nov2012,15:00 | #6 |
|
Quote:
Originally Posted by state
|


