Go4Expert

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
 
Hi,
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.

Thanks,
Best Regards,
BoSCHoW.

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 00:28.