int data[4] = {1,7,4,2}; int sum; void tutorial() { int i; sum = 0; for(i=0; i<4; i++){ sum = sum + data[i]; } }