#include<stdio.h>
#include<conio.h>
void main()
{
void read(int *,int);
void display(int *,int);
void inverse(int *,int);
int a[6],i;
clrscr();
read(a,6);
display(a,6);
inverse(a,6);
display(a,6);
getch();
}
void read(int c[],int i)
{
int j;
printf("Enter six element for an array \n");
for(j=0;j<i;j++)
scanf("%d",&c[j]);
}
void display(int d[],int i)
{
int j;
printf("Element in array are : \n");
for(j=0;j<i;j++)
printf("%d ",d[j]);
printf("\n");
}
void inverse(int x[],int k)
{
int i,temp;
k--;
for(i=0;i<(k/2);i++)
{
temp=x[i];
x[i]=x[k];
x[k]=temp;
k--;
}
}

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.