luc052.c ​
Metadata ​
- Author — Amit Dutta
- Last updated — 08 Feb 2026
- License — MIT License (See the LICENSE file for details)
Problem Statement ​
Problem Statement
If a macro is not getting expanded as per your expectation, how will you find out how is it being expanded by the preprocessor?
Source Code ​
Printing the code
To print this file, open it on GitHub and click Raw before printing, or use the Download Raw button above and print directly from that page.
c
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main()
{
printf("To see how macros are expanded, use the compiler flag '-E'.\n");
printf("Command: gcc -E filename.c\n");
printf("This outputs the file after preprocessing stage.\n");
return 0;
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12