C is like Python, if you have 9 slots for an array, you will have 0 to 8 as indices. C is very serious about memory as it is a low-level language. You would have to allocate print vettore [8] if you are trying to access the last element.