accessing elements of an array in c