79385301

Date: 2025-01-24 18:32:30
Score: 1.5
Natty:
Report link

The time function, actually expects a pointer as an argument. Passing 0 is the same thing as passing NULL. That's why you see people use either srand(time(0) or srand(time(NULL). Passing 1 as an argument causes the program inproperly, because 1 is not a valid memory address (pointer).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: omni-drft