Write a C program to add two numbers using macros. How to add two numbers using macros Continue reading C program to find sum of two numbers using macro
#define preprocessor directive in C program. Logic to add two numbers using macros.
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
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 programming supports two special preprocessor directive for string operations. Stringize (#) and token pasting (##) are C preprocessor string manipulation operators.
In previous article we learned about basic and conditional preprocessor directives in C language. In this article we will move further and learn string manipulation preprocessor operators.
Continue reading Stringize (#) and token pasting (##) operator in C language
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