0
Change number in srand(time(0))
Why it shows error when zero in time changed ?
1 Resposta
+ 2
The declaration of time is: time_t time (time_t* timer);
As you see it expects a pointer as argument.
0 can be implicitly converted to a pointer whereas any other number cannot, hence the error.