@TechyGuy • 05 Dec, 2011
please could you throw some light on the topic. 😀

thank you.
@Pensu • 05 Dec, 2011 As far as i have studied macros are preprocessor directives. Now, preprocessor directives are executed before actual compilation of the code. As you might know their value is replaced in the program before the code gets compiled. Or in simple language you can say preprocessor directives is a concept and macros are entities.
I know this is a bit ambiguous, but i hope it clears your doubt.

P.S: Correct me if i am wrong.
@Ankita Katdare • 05 Dec, 2011 • 1 like Whoa! How will you compare these two terminologies?

A preprocessor is a program that processes its input data to produce output that is used as input to another program.
The output is said to be a preprocesed form of the input data, which is often used by some subsequent programs like compilers.

Thus, the C preprocessor handles directives for source file inclusion (#include), macro definitions (#define), and conditional inclusion (#if).
An example of Macro Expansion:
#define PI 3.1415
Above definition lets you use "PI" instead of every occurrence of 3.14159.

Related Posts

I thought of compiling a list of the coolest and the best whatsapp group names that you've been using for your respective groups. For the sake of convenience, we'll stick...
A simple good bye email or last working day mail ain't cool! We've some awesome templates that you can use. If you're looking for an amazing Last Working Day email...
Hello CEans, How to convert CGPA (10 Point Scale) to Percentage? Please help!
I heard many students are having a trouble registering on the TCS Portal, when it's quite straightforward actually. If you have problem in attaching photos or CV, Use internet explorer...
What is IES or Indian Engineering Services Exam? Union Public Services Commission (UPSC) conducts the Engineering Services Exam or ESE 2016 is an entrance exam for graduates who wish to...