Hello Everybody,
I have a problem.
if I have an array of (for example) 50 elements, but i need to write from element numer 100 to 149
I wanted to define a macro:
the code I wrote is (in the same file):
[code=c]
static array[50]
#define array[a] array[(a)- 100]
void main()
{
array[101] = 5;
}
[/code]
but it doesn't work.
Can you please help me?
Thank a lot!!!!!
I have a problem.
if I have an array of (for example) 50 elements, but i need to write from element numer 100 to 149
I wanted to define a macro:
the code I wrote is (in the same file):
[code=c]
static array[50]
#define array[a] array[(a)- 100]
void main()
{
array[101] = 5;
}
[/code]
but it doesn't work.
Can you please help me?
Thank a lot!!!!!
Comment