Tag Archives: #endif

C program to define, undefine and redefine a macro – #define, #undef

Write a C program to define, undefine and redefine a macro (compile time constant). How to define, remove and redefine a macro in C programming. How to define, remove and redefine a compile time constant (macro) in C programming.

Continue reading C program to define, undefine and redefine a macro – #define, #undef

C program to create and include custom header file

Write a C program to create and include your custom header file. How to create and include your own header file in C programming. C program to include another C program and custom header files.

Continue reading C program to create and include custom header file

C preprocessor directives – #include, #define, #undef and conditional directives

A C preprocessor is a statement substitution (text substitution) in C programming language. It instructs the C compiler to do some specific (required) pre-processing before the compilation process.

When we compile a C program, C preprocessor processes the statements which are associated with it and expand them to make the code for further compilation.

Continue reading C preprocessor directives – #include, #define, #undef and conditional directives