1.

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.
  • _ _cplusplus Is defined if you are compiling a C++ program.

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



Discussion

No Comment Found