Preprocessing Directives
Introduction C’s preprocessor provides a facility for defining constant and substitution, which are commonly called […]
Introduction C’s preprocessor provides a facility for defining constant and substitution, which are commonly called […]
If you want to nullify the effect of the define directive and specify a new […]
The ifdef directive makes substitutions based on whether a particular identifier is defined. Example
#ifndef is used to check whether a particular symbol is NOT defined. Example
#if allows you to define more generalized conditions. Multiple conditions, which are connected by relational […]
The ifelse directive lets us specify the action if the condition is not true. Example […]
ifelif allows us to take one action if there are multiple decision points. For example, […]
The error directive is used to specify an error message for a specific situation. In […]
The #line directive allows you to define arbitrary line numbers for the source lines. Normally, […]
Macros allow replacement of the identifier by using a statement or expression. The replacement text […]
While writing the macro, you have to write the macro body carefully because the macro […]
The standard predefined MACRO __FILE__ available in C shows the full path to the file.
__DATE__ macro is used to print system date in C/C++ language. This macro expands to […]
__TIME__ macro is used to print system time in C/C++ language. This macro expands to […]