Tag Archives: #define

C program to find square and cube of a number using macro – #define SQUARE(x), #define CUBE(x)

Write a C program to find square and cube of a number using macro. How to find cube of a number using macro #define preprocessor directive in C program. Logic to find square and cube of a number using macro.

Continue reading C program to find square and cube of a number using macro – #define SQUARE(x), #define CUBE(x)

C program to define, undefine and redefine a macro – #define, #undef

Write a C program to define, undefine and redefine a macro (compile time constant). How to define, remove and redefine a macro in C programming. How to define, remove and redefine a compile time constant (macro) in C programming.

Continue reading C program to define, undefine and redefine a macro – #define, #undef