How to find the last value in an array
Hi experts,
I am new to C, i need to insert an element in the middle of an array,for that i thought a logic that after finding the last value in an array i can shift the value and after that i can insert the new value for this i have to find the last value in an arry,how can i find the last value in an array.

example

int arr[30]



in this i have to insert the element after the 4 location,for that i thought to find the last value in an array

ex the last value in the arr[15].


thanks and regards,
kanimozhi.m