This should print out as specified by the printf statements, yet I getCode:#include <time.h>
#include <stdio.h>
main()
{
time_t t;
struct tm* local_t = localtime(&t);
if (local_t != NULL) {
printf("Day of the month: %d\n", local_t->tm_mday);
printf("Month of the year: %d\n", local_t->tm_mon);
printf("Day in the year: %d\n", local_t->tm_yday);
}
}
6
3
95
Does anyone know what the problem can be?
Thanks