Are these 2 methods equivalent ?
char a[10] = ""; char a[10] = { 0 };
struct c { ...
The following line of code, which creates a variable-length array on the stack:
char name[cpfs_params(cfdata->cpfs)->namemax + 1] = {'\0'};
src/mount.cpfs/cpfsfuse.c:179: error: variable-sized object may not be initialized ...
I have an array declared in my header file like this:
int snapshot[kSnapshotSize];
snapshot[kSnapshotSize] = {[0 ... kSnapshotSize-1] = 5};
Possible Duplicate: How to initialize an array in C
float myArray[myArraySize] = {1};