luc052.c
Problem Statement
luc052.c
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
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
● Author - Amit Dutta · Updated - 08 Feb 2026