M
Mark
Hi all :
I thought that the following code will initialilze every element of array,
but it appears that it does so only for the 0th index.
#define MAX_LEN 10
char name[MAX_LEAN + 1] = { '\0', };
Somehow I was assured that such syntax, i.e. value followed by comma will
work for all elements of arrays. Seems I was wrong and only memset() will do
what I need. Does the standard clearly says that such construction will
never work?
Thanks !
Mark
I thought that the following code will initialilze every element of array,
but it appears that it does so only for the 0th index.
#define MAX_LEN 10
char name[MAX_LEAN + 1] = { '\0', };
Somehow I was assured that such syntax, i.e. value followed by comma will
work for all elements of arrays. Seems I was wrong and only memset() will do
what I need. Does the standard clearly says that such construction will
never work?
Thanks !
Mark