Predefined Macros
suggest changeIntroduction
ANSI C defines a number of macros. Although each one is available for your use in programming, the predefined macros should not be directly modified.
Syntax
__DATE__— the current date as a string literal in “MMM DD YYYY” format__TIME__— the current time as a string literal in “HH:MM:SS” format__FILE__— the current filename as a string literal__LINE__— the current line number as a decimal constant__STDC__— defined as 1 when the compiler complies with the ANSI standard
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents