Can any 1 explain about the time() function in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can any 1 explain about the time() function in c++

need help in learning

31st Mar 2017, 3:07 AM
Ajmal Aboobacker
Ajmal   Aboobacker - avatar
2 Answers
+ 4
The function returns the current time or date on the system.
31st Mar 2017, 3:37 AM
Wen Qin
Wen Qin - avatar
0
"Get the current calendarĀ timeĀ as a value of type time_t . The function returns this value, and if the argument is not a null pointer, it also sets this value to the object" http://www.cplusplus.com/reference/ctime
31st Mar 2017, 3:53 AM
Eranga
Eranga - avatar