C
celephicus
Greetings,
This is what I want to do:
int a, b;
int *arr[] = { &a, &b, &arr[1], };
Of course this won't work. Is there a (portable) way to achieve this?
The application is initialising an array that is a linked list, and I
don't want to do it at runtime as I am on an embedded system with not
much memory.
Regards
TomH
This is what I want to do:
int a, b;
int *arr[] = { &a, &b, &arr[1], };
Of course this won't work. Is there a (portable) way to achieve this?
The application is initialising an array that is a linked list, and I
don't want to do it at runtime as I am on an embedded system with not
much memory.
Regards
TomH