
String containing the current date
__FILE__
String containing the file name
__LINE__
Integer representing the current line number
__STDC__
If follows ANSI standard C, then value is a nonzero integer
__TIME__
String containing the current date.
How to use predefined Macros?
C Program to find the current time
#include <stdio.h>
int main(){
printf("Current time: %s",__TIME__); //calculate the current time
}