Interview answers verified by specialists.

Find interview questions and answers on this website:


See right interview answers on 30 common job interview questions

What are the standard predefined macros?

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.