Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
C++
4.2k+ articles
C Language
2.1k+ articles
Operating Systems
1.1k+ articles
C Programs
690+ articles
C Examples
95 articles
C-Macro & Preprocessor
33 articles
c-puzzle
30 articles
Macro & Preprocessor
21 articles
C-Struct-Union-Enum
16 articles
cpp-macros
11 articles
C Macro
6 posts
Popular Articles
Recent Articles
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,
...read more
C Macro
C Language
C-Struct-Union-Enum
C Programs
Picked
C Examples
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 affectin
...read more
C Macro
C Language
C-Macro & Preprocessor
Macro & Preprocessor
C Programs
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 usef
...read more
C Macro
Operating Systems
C Programs
Similar Topics
C++
4.2k+ articles
C Language
2.1k+ articles
Operating Systems
1.1k+ articles
C Programs
690+ articles
C Examples
95+ articles
C-Macro & Preprocessor
33+ articles
c-puzzle
30+ articles
Macro & Preprocessor
21+ articles
C-Struct-Union-Enum
16+ articles
cpp-macros
11+ articles
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 #d
...read more
C Macro
cpp-macros
C Language
C++
C Programs
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 li
...read more
C Macro
C Language
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
...read more
C Macro
c-puzzle
C Language
C-Macro & Preprocessor
1
1
1
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 !