@jai

q is a pointer, it store memory address of 6th element with value 2 with **index 5** .

p is another pointer, it store memory address of 2nd element with** index 1** whose value is 15.

so value for q is 5 and value for p is 1 so q-p is = 5-1 = 4