Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Misc
8.5K+ articles
C++
4.3K+ articles
C Language
1.5K+ articles
C Programs
555+ articles
C/C++ Puzzles
168+ articles
c-puzzle
30+ articles
cpp-macros
11+ articles
Macro & Preprocessor
6+ articles
C Macro
6+ articles
C-Macro & Preprocessor
18 posts
Recent Articles
Popular Articles
C Preprocessors
Last Updated: 03 June 2025
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
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
#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
#include in C
Last Updated: 27 May 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
Types of pragma directives in C
Last Updated: 04 April 2021
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
#define vs #undef in C language
Last Updated: 22 June 2023
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
#define in C
Last Updated: 14 July 2023
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
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
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
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
A C Programming Language Puzzle
Last Updated: 21 June 2018
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
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
Difference between #define and const in C
Last Updated: 02 January 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
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
C Preprocessor Directives
Last Updated: 21 May 2025
In C programming, the preprocessor is a program that process the source code before the actual compilation begins. It uses preprocessor directives are commands that instru...
read more
C++
C Basics
cpp-macros
C-Macro & Preprocessor
Macro & Preprocessor
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !