1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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