According to documentation I checked, time_t time(time_t *seconds)
is declared under <time.h>
header file. Yet when I run this code:
#include<stdio.h>
#include<stdlib.h>
int main()
{
srand(time(NULL));
printf("%d",rand());
return 0;
}
without including <time.h>
,it works fine, or at least works. How does that happen?