Does anyone have a way to initialize an array of ints (any multi-byte type is fine really), to a non-zero and non -1 value simply? By which I mean, is there a w
int
You said something about 2 lines but you can do it in one line using comma ,operator.
,
for(count = 0; count < 30 ; arr[count] = 1,count++);