The statement, (number==‘0’) compares the value contained in the variable “number” with the ascii value of zero. As you are using C programming, you can use any datatype for “number” and use the typecasting to cast it to character to perform the comparison.
The statement, (number==0), compares, the value contained in the variable “number” with zero. In this case, also, the datatype can be anything and if the compilation gives you problem, you can typecast number to int and then perform the compilation.
The statement, (number==NULL) also compares the value contained in number with 0. (Note that NULL is internally defined as 0). Hence, this is the same as the statement (number==0).