Skip to content

luc052.c

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?

Metadata

Property Detail
Author Amit Dutta amitdutta4255@gmail.com
Date 08 Feb 2026
License MIT License (See the LICENSE file for details)

Actions

Raw View on GitHub

💡 You can print or save this file by opening Raw and using your browser.

Source Code

#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;
}