- Aug 4, 2001
- 967
- 0
- 0
Suppose I write the following expression:
int index[3] = { 34, 54, 23};
No problem. But if I declare:
int index[3];
how do I set the values afterward in the same fashion as above? Of course I can set each array element to its value manually but it gets tedious when arrays are large.
int index[3] = { 34, 54, 23};
No problem. But if I declare:
int index[3];
how do I set the values afterward in the same fashion as above? Of course I can set each array element to its value manually but it gets tedious when arrays are large.
