68、分别写出 bool, int, float,指针类型的变量a 与“零”的⽐较语句。
bool:if ( !a ) or if(a)
int: if ( a == 0)
float: const EXPRESSION EXP = 0.000001 if ( a <= EXP && a >= -EXP)
pointer : if ( a != NULL) or if(a == NULL)Last updated
bool:if ( !a ) or if(a)
int: if ( a == 0)
float: const EXPRESSION EXP = 0.000001 if ( a <= EXP && a >= -EXP)
pointer : if ( a != NULL) or if(a == NULL)Last updated