Array is a collection of similar
data type which occupies continuous location on memory. Array’s name is a
constant pointer which point first element of array. So when an array is passing
to a function. Address of first element pass to function instead of value. If any
change made inside of function body with array, then it affects actual value of
passed array. Following program demonstrate this fact.
#include<stdio.h>
int update(int[]);
void main()
{
int arr[5],i;
for(i=0;i<5;i++)