What is the difference between int array1 [6] and int array2 [5:0];

In reply to UVM_LOVE:

In compact form, you cannot have an index starting from any value you desire. It begins from 0 by default.
In verbose form, you can rather have an array of 10 elements as array[9:0] or array[1:10] and, array[2:11].

Hope it helps :)