C PROGRAM TO PRINT TIME || C PROGRAM TO PRINT DATE || DATE AMD TIME -116

preview_player
Показать описание
In this lecture we will see how to print date and time in c
learn python
python for beginners
python for beginners in 2019
Basic programming
programming for interview
Рекомендации по теме
Комментарии
Автор

I have two easy method to print time in c

TechnicalDreams
Автор

what is time_t

i got an error :
iledemo4.c: In function ‘main’:
filedemo4.c:41:5: warning: format not a string literal and no format arguments[-Wformat-security]
printf(ctime(&currentTime));

filedemo4.c:105:5: warning: implicit declaration of function ‘get_time’; did you mean ‘gmtime’?
get_time(time_t);

gmtime
filedemo4.c:105:14: error: expected expression before ‘time_t’
get_time(time_t);

oliviaxavier
Автор

Why you use ctime in printf statement? why not time ?

vinayakdhinde