Re: Macros

new topic     » goto parent     » topic index » view thread      » older message » newer message

From: Bernie Ryan>

>  #define MyMacroName(ExprA)         ( (ExprA) * 20 )
>
>  Now in my progam I use this:
>
>  answer = MyMacroName(7 + 10)
>  answer = MyMacroName( 487 + 10/523 )
>
>  Then the compiler will put this in my program.
>
>  answer = 7 + 10 * 20

wouldnt that be:
  answer = (7 + 10) * 20 ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu