Help
Advanced Member level 2
Hi,
Q1) Can we define Array? How to define array?
Q2) How the Macros work in C? Do you got any sample?
eg.
How can we make more selection for our #define MYCASE?
Is it posible we add another MYCASE(widget,24);
Thank You.
Q1) Can we define Array? How to define array?
Q2) How the Macros work in C? Do you got any sample?
eg.
Code:
#define MYCASE(_item,_id) \
case _id: \
_item##_##_id=_id;\
break
switch(x) {
MYCASE(widget,23);
}
How can we make more selection for our #define MYCASE?
Is it posible we add another MYCASE(widget,24);
Thank You.