When I initialize the array below all the output looks ok except for values[3]. For some reason values[3] initialized as values[0]+values[5]
values[3]
values[0]+values[5]
Try this code:
int values[10]; values[0]=197; values[2]=-100; values[5]=350; values[3]=values[0]+values[5]; values[9]=values[5]/10;
And then you print the array like you've done.