highest index will is x-1;
x indicates number of elements in array and counting starts with 0.
An Array is a collection of items stored in contiguous memory locations. It stores multiple values of same type together. Index number in array starts with zero and therefore if there are x elements in an array.The highest index will is x-1.
The statement written creates an array value with the size of x.The index of the array starts with 0(zero) and the last index is size-1. The size of the array is x so the starting index of the array values is 0 and the last index of the array values is x-1.
Hence the answer to this question is x-1.