0

what is the use of null in rand ? how it is work

srand (time(null))

4th Nov 2016, 7:07 AM
KG Feignh
KG Feignh - avatar
3 Answers
0
Walang sagot sa tanong kung bakit null ay mahalaga 😂
4th Nov 2016, 7:35 AM
Jenilyn Salonga
Jenilyn Salonga - avatar
0
The call to time(NULL) returns the current calendar time (seconds since Jan 1, 1970). See this reference for details. Ordinarily, if you pass in a pointer to atime_t variable, that value will point to the current time. ctto
4th Nov 2016, 7:38 AM
Jenilyn Salonga
Jenilyn Salonga - avatar
0
iloveyou
4th Nov 2016, 3:52 PM
KG Feignh
KG Feignh - avatar