What exactly does this mean --> Time(NULL) | SoloLearn: Learn to code for FREE!

0

What exactly does this mean --> Time(NULL)

I wonder what this mean.

11/4/2016 7:40:48 AM

Jenilyn Salonga

2 Answers

New Answer

0

It's very simple. In the C++ versions before C++11 the NULL macro was used to signal that a pointer is a null pointer (i.e. a pointer that points to an invalid address). The NULL macro is 0 in all definitions I know. Ergo "time(NULL)" means "time(0)" which returns the seconds since so-called "epoch": 1.1.1970 00:00:00

0

haha .. iloveyou