Home > Back-end >  For the time () function of doubt, bosses, please answer
For the time () function of doubt, bosses, please answer

Time:11-30

The time () function declaration is as follows:

Time_t time (time_t * const time);

But in the process of practical application, will write like this:

Time (0);//right

And:
Time (1);//error


Excuse me why the number 0 can be converted into time_t type of pointer, but not the number 1?

CodePudding user response:

General no one time (0); And with time (NULL)
0==NULL, 1==???