Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
C Language
1.3K+ articles
C Programs
441+ articles
C/C++ Puzzles
69+ articles
c-puzzle
30+ articles
cpp-macros
11+ articles
Macro & Preprocessor
6+ articles
C Macro
6+ articles
C-Macro & Preprocessor
18 posts
Recent Articles
#define in C
Last Updated: 23 July 2025
In C programming, #define is a preprocessor directive that is used to define macros. The macros are the identifiers defined by #define which are replaced by their value be...
read more
C Language
Picked
C-Macro & Preprocessor
#define vs #undef in C language
Last Updated: 23 July 2025
In this article, we will discuss the difference between #define and #undef pre-processor in C language.What are Pre-Processor Directives?Pre-processor is a program that pe...
read more
C Programs
C Language
C-Macro & Preprocessor
Macro & Preprocessor
Types of pragma directives in C
Last Updated: 23 July 2025
Pragma Directives: The pragma directive is used to control the actions of the compiler in a particular portion of a program without affecting the program as a whole. Pragm...
read more
C Programs
C Language
C Macro
C-Macro & Preprocessor
Macro & Preprocessor
#include in C
Last Updated: 12 July 2025
In C programming, the #include directive is very important to integrate any external files (header files) into a program, as the #include is used for file inclusion(a proc...
read more
C Language
C-Macro & Preprocessor
#pragma Directive in C
Last Updated: 09 January 2024
In C, the #pragma directive is a special purpose directive that is used to turn on or off some features. #pragma also allows us to provide some additional information or i...
read more
Misc
C Language
C-Macro & Preprocessor
Macro & Preprocessor
C program to print a string without any quote (single or double) in the program
Last Updated: 31 January 2022
Print a string without using quotes anywhere in the program using C or C++.Note : should not read input from the console.The idea is to use macro processor in C (Refer poi...
read more
C/C++ Puzzles
C Language
c-puzzle
C-Macro & Preprocessor
C Preprocessor Directives
Last Updated: 29 May 2026
The C preprocessor is a program that processes the source code before actual compilation begins. It handles special instructions called preprocessor directives, which guid...
read more
C++
C Basics
cpp-macros
C-Macro & Preprocessor
Macro & Preprocessor
C Preprocessors
Last Updated: 09 April 2026
Preprocessors are programs that process the source code before the actual compilation begins. They are not part of the compilation process but operate separately, allowing...
read more
Misc
C Language
C-Macro & Preprocessor
What’s difference between header files "stdio.h" and "stdlib.h" ?
Last Updated: 02 January 2025
In C programming, standard header files provide various inbuilt functionalities and two of the most commonly used standard header files are stdio.h and stdlib.h. The stdio...
read more
Difference Between
Articles
C Language
CPP-Library
C-Macro & Preprocessor
How to print a variable name in C?
Last Updated: 02 January 2025
Printing a variable name means printing the identifier that is assigned to the variable. To print it, it should be in the form of string. This can be done by using stringi...
read more
C Language
c-puzzle
cpp-macros
C-Macro & Preprocessor
A C Programming Language Puzzle
Last Updated: 23 July 2025
Give a = 12 and b = 36 write a C function/macro that returns 3612 without using arithmetic, strings and predefined functions.We strongly recommend you to minimize your br...
read more
C Language
cpp-macros
cpp-puzzle
C-Macro & Preprocessor
Difference between #define and const in C
Last Updated: 23 July 2025
In C, both #define and const define constant values, but these constants differ greatly in their behaviors and implementation. #define is a preprocessor directive used to ...
read more
C Language
cpp-macros
C-Macro & Preprocessor
Branch prediction macros in GCC
Last Updated: 28 May 2017
One of the most used optimization techniques in the Linux kernel is " __builtin_expect". When working with conditional code (if-else statements), we often know which branc...
read more
C Language
c-puzzle
GCC
AdvanceC
C-Macro & Preprocessor
Variable length arguments for Macros
Last Updated: 21 January 2022
Like functions, we can also pass variable length arguments to macros. For this we will use the following preprocessor identifiers.To support variable length arguments in m...
read more
C Language
c-puzzle
C-Macro & Preprocessor
Multiline macros in C
Last Updated: 28 May 2017
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 us see with examp...
read more
C Language
C-Macro & Preprocessor
1
2