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
C++
4.3K+ articles
C Language
1.8K+ articles
Operating Systems
1.2K+ articles
C Programs
705+ articles
Programming Language
592+ articles
c-puzzle
30+ articles
C-Macro & Preprocessor
18+ articles
cpp-macros
11+ articles
Macro & Preprocessor
6+ articles
C Macro
6 posts
Recent Articles
Popular Articles
Predefined Macros in C with Examples
Last Updated: 21 December 2021
According to C89 Standard, C programming language has following predefined macros: __LINE__ Macro: __LINE__ macro contains the current line number of the program in the...
read more
Programming Language
C Language
C Macro
Macros and its types in C
Last Updated: 13 May 2025
In C programming, a macro is a symbolic name or constant that represents a value, expression, or code snippet. They are defined using the #define directive, and when encou...
read more
C Language
C Macro
cpp-macros
How to detect Operating System through a C program
Last Updated: 19 July 2020
One can find out the operating system on which the program is running with the help of C programming. This piece of information is very useful for the case where we want t...
read more
C Programs
Operating Systems
C Macro
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
Write a C macro PRINT(x) which prints x
Last Updated: 13 May 2022
At the first look, it seems that writing a C macro which prints its argument is child's play. Following program should work i.e. it should print x c #define PR...
read more
C Language
C Macro
c-puzzle
C-Macro & Preprocessor
When to Use Enum Instead of Macro in C?
Last Updated: 21 June 2024
In C programming, bothenums (short for enumeration)andmacros are used for defining symbolic names associated with specific values. However, there are situations where usin...
read more
C Programs
C Language
Picked
C Macro
C-Struct-Union-Enum
C Examples
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 !