A
almurph
Hi,
I need some help with this below:
#define Func1(a) (1 << (a))
#define Func2(a,b) ((b[(a) >> 3]) & Func1((a) & 07))
where b is of type int
where s is an array of type - I'm not too sure, think its an arrays on
ints but I'm open on this could be chars
I understand the concept of macros in C but the above confuses me.
What is the author doing at the end of the day? Can this be
simplified? Would appreciate any comments/ideas/joined-up-thinking
post that you may be able to offer.
Thanking you,
Al.
I need some help with this below:
#define Func1(a) (1 << (a))
#define Func2(a,b) ((b[(a) >> 3]) & Func1((a) & 07))
where b is of type int
where s is an array of type - I'm not too sure, think its an arrays on
ints but I'm open on this could be chars
I understand the concept of macros in C but the above confuses me.
What is the author doing at the end of the day? Can this be
simplified? Would appreciate any comments/ideas/joined-up-thinking
post that you may be able to offer.
Thanking you,
Al.