Macros in C

Discussion in 'C' started by boschow, May 14, 2007.

  1. boschow

    boschow New Member

    Joined:
    Feb 22, 2007
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. aVague

    aVague New Member

    Joined:
    May 2, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    forex
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice