A question/curiosity: When using the time function, why must the argument be 0, as "time(0)"? I tried other numbers and it gave error.
sgw
0
Junior Poster in Training
Recommended Answers
Jump to PostYou could also try time(NULL).
Jump to Posttime's parameter is an alternate return path. If you pass in NULL (or 0) it is ignored. Otherwise, you must pass the address of a time_t object which will be filled with the time.
All 7 Replies
Danny_501
2
Junior Poster
nucleon
114
Posting Pro in Training
vmanes
commented:
Good clear answer!
+8
mvmalderen
2,072
Postaholic
mvmalderen
2,072
Postaholic
nucleon
114
Posting Pro in Training
sgw
0
Junior Poster in Training
ArkM
1,090
Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.