int i, a[10];   //An array that can hold 10 integers

for(i = 0; i < 10; i++) {
  a[i] = 0;     //Initialize all array elements to 0
}
a[4] = 42;      //Set fifth element to 42