Hello,
I was wondering if the following statement will initialize all the 6
elements with NULL:
void function() {
int *list[6] = {NULL};
. ..
}
what I want is an array with 6 pointers to int that are initialized
with NULL. Or do I've to do
int *list[6] = {NULL, NULL, NULL, NULL, NULL, NULL} ?
thanks for your help,
+kind regards,
Arne
I was wondering if the following statement will initialize all the 6
elements with NULL:
void function() {
int *list[6] = {NULL};
. ..
}
what I want is an array with 6 pointers to int that are initialized
with NULL. Or do I've to do
int *list[6] = {NULL, NULL, NULL, NULL, NULL, NULL} ?
thanks for your help,
+kind regards,
Arne
Comment