C Programming Tutorial - 74: Predefined Macros

preview_player
Показать описание
In this tutorial we'll learn to fetch system date and time using predefined macros.
Рекомендации по теме
Комментарии
Автор

its not running i dont know why???
#include<stdio.h>
#include<string.h>

main()
{

printf("Date: %s", _DATE_);
printf("\nTime: %s", _TIME_);

}

rebhuroy
Автор

Hey Madhur, 43th tutorial is missing in your C Programming tutorial series.

syberitespoil
Автор

Here is the code if you are interested to check out:
#include<stdio.h>
#include<string.h>

main()
{

   printf("Date: %s", __DATE__);
   printf("\nTime: %s", __TIME__);

}

gudukasa
Автор

sir here we are just printing it .if we want to store it in any variable how we will do it

mahakbhatia