sir i am a student and i always want to learn more
i replied for the question -how-do-i-say-not-equal-more-than-one-number
my reply was
1> if given variable is either not equal to 1 or 2 you need to code:
if((variable !=1)||(variable !=2)) // ' | '(just above enter key ) :is called as pipeline operator and is logical equivalent of " or "
2>if given variable is not eqal to both 1 & 2 :
if((variable !=1)&&(variable !=2)) // ' & ' :is and operator
i want to know in what situation or circumstance this is not useful so please help me learn basics of this language
i replied for the question -how-do-i-say-not-equal-more-than-one-number
my reply was
1> if given variable is either not equal to 1 or 2 you need to code:
if((variable !=1)||(variable !=2)) // ' | '(just above enter key ) :is called as pipeline operator and is logical equivalent of " or "
2>if given variable is not eqal to both 1 & 2 :
if((variable !=1)&&(variable !=2)) // ' & ' :is and operator
i want to know in what situation or circumstance this is not useful so please help me learn basics of this language
Comment