Code:
#include <stdio.h>
#include<conio.h>
void funarr(int arr[], int len)
{
printf("\nEnter the length of array :");
scanf("%\nd",&len);
printf("\nEnter the elements of the array :");
for(i=0; i<len; i++)
{
     scanf("%d",&arr[i]);
}
printf("\nThe elements of the array are as follows :");
for(i=0; i<len; i++)
{
    printf("\n%d",arr[i]);
}
}
void main()
{
int myarr[100];
clrscr();
funarr(myarr, 7);
getch();
}

Last edited by shabbir; 2Aug2011 at 19:04.. Reason: Code blocks