what is the use of null in rand ? how it is work | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
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