it is easy to find the length of string since there is a null character' \0' at the end of string..but in the array of integer there is no such null characcter ..then how can we program to find the length of the integer array?????
You can calculate the size of an integer array by using sizeof() function this will give you the total bytes of an array and if u want to calculate the number of elements in an array of integer type you can divide the size of an array with size of one element of an array ( sizeof(a)/sizeof(a[0]) this will give you the number of elements )