pass_arr( int arr[])
{
int i;
for( i=0; i<7; i++)
{
printf("arr[%d] is: %d \n", i, arr[i]);
}
}
int main()
{
int arr[] = {11, 22, 33, 44, 55, 66, 77};
pass_arr(arr);
return 0;
}
output:
arr[0] is: 11
arr[1] is: 22
arr[2] is: 33
arr[3] is: 44
arr[4] is: 55
arr[5] is: 66
arr[6] is: 77
No comments:
Post a Comment