In a C program, all lines that start with # are processed by preprocessor which is a special program invoked by the compiler. In a very basic term, preprocessor takes a C program and pro...
Share
Like functions, we can also pass variable length arguments to macros. For this we will use the following preprocessor identifiers.
To support variable length argument...
Share
One of the most used optimization techniques in the Linux kernel is ” __builtin_expect”. When working with conditional code (if-else statements), we oft...
Share
In this article, we will discuss how to write a multi-line macro. We can write multi-line macro same like function, but each statement ends with “”. Let...
Share
We are all familiar with the working of macros in languages like C. There are certain situations in which macro expansions can lead to undesirable results because of ...
Share
Macros are pre-processed which means that all the macros would be processed before your program compiles. However, functions are not preprocessed but compiled.
See th...
Share
Most of the times, in competitive programming, there is a need to assign the variable, the maximum or minimum value that data type can hold, but remembering such a la...
Share