Question:

What are the standard predefined macros?

Answer:

The ANSI C standard defines six predefined macros for use in the C language:

Macro Name   Purpose
__LINE__ - Inserts the current source code line number in your code.
__FILE__ - Inserts the current source code filename in your code.
__DATE__ - Inserts the current date of compilation in your code.
__TIME__ - Inserts the current time of compilation in your code.
__STDC__ - Is set to 1 if you are enforcing strict ANSI C conformity.
__cplusplus - Is defined if you are compiling a C++ program.

Keywords:

© 2017 QuizBucket.org