Page 1 of 1

Curious about #define bla_bla_bla (20)

Posted: Tue Dec 16, 2008 8:06 am
by seulater
I am curious why sometimes I see a #define with asterisk's around a number and other times I do not.

#define bla_bla_bla (20)
Or
#define bla_bla_bla 20

Re: Curious about #define bla_bla_bla (20)

Posted: Tue Dec 16, 2008 8:25 am
by Chris Ruff
This is interesting:

#define 20 * n

#define (20 * n)

return (3 * b)

this is not interesting

#define 20
#define (20)
return (0)

guys just do the () out of habit, even when not necessary

Chris