value in an array is passing to a function Example
#include
#include
int array_test(int arra[]);
int main ()
{
int line[5] = {10,20,30,40,50};
array_test(line );
return 0;
getch();
}
array_test(int arra1[])
{
int i;
printf("arra value is ");
for(i=4; i>-1; i-- )
printf(" _%d ",*arra1++);
return 0;
}
No comments:
Post a Comment