Undefines a macro or preprocessor variable
Returns true if some preprocessor variable or macro is defined
Returns true if some preprocessor variable or macro is not defined
it is used to issue some special commands to the compiler
#include <stdio.h>
int main()
{
printf("File name is %s\n",__FILE__);
return 0;
}
The file name is code.c
#include <stdio.h>
int main()
{
printf("Today's date is %s\n",__DATE__);
return 0;
}
Today's date is Jul 10 2022
#include <stdio.h>
int main()
{
printf("Time now is %s\n",__TIME__);
return 0;
}
Time now is 10:49:55
#include <stdio.h>
int main()
{
printf("Line no is %d\n",__LINE__);
return 0;
}
Line no is 4
#include <stdio.h>
int main()
{
printf("ANSI: %d\n",__STDC__);
return 0;
}
ANSI: 1