C Programming Arrays and Functions