Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Macros in C (http://www.go4expert.com/forums/macros-in-c-t4294/)

boschow 14May2007 13:53

Macros in C
just lately i heard about macros in C, and i was wandering what are they used for and how are they written? Can please someone tell me this.

Best Regards,

aVague 14May2007 17:30

Re: Macros in C
macros is like a function
differenses are:
text of macros is putting every time ,when you use it in a programm(function - 1 time)

and this is a processor directive , that means nothing else can have its name

so macros is used to avoid mistakes when you use some operation many times

All times are GMT +5.5. The time now is 12:38.