![]() |
help with if n condition evaluation
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()..!!! |
Re: help with if n condition evaluation
Can you clarify in which programming language you have seen such codes?
|
Re: help with if n condition evaluation
Quote:
|
Re: help with if n condition evaluation
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.
|
Re: help with if n condition evaluation
Hello IndiraP
Suppose I have the following Code:
int a=5 |
Re: help with if n condition evaluation
Quote:
|
| All times are GMT +5.5. The time now is 14:21. |