hi frnds i have a prob in a question actually in this question iwant to pass part of an array to a function but i cant understand how can i pass my atempt is
Code:#include<stdio.h>
#include<conio.h>
void part(int(*f)(int a[5]));
main()
{
clrscr();
int i;
int a[5]={1,2,3,4,5};
{
for(i=0;i<5;i++)
printf("%d",a[i]);
}
void part(int(*f)(int a[i]));
getch();
}
void part(int(*f)(int a[5]))
{
int(*a[])()={
for(i=2;i<=3;a++)
printf("%d",a[i]);
}
tell me how can i solve my problem