Array Initialization
We can assign array element values. E.g.,
int id[4];
id[0] = 45;
id[1] = 2;
id[2] = 800;
id[3] = 81;
-
Or equivalently, an array can be initialized in the definition. E.g.,
int id[4] = {45, 2, 800, 81};
-
Uninitialized array elements usually contain arbitrary values. All variables should be initialized before being used.