Quzah,
From what I understand of that example, the second part is what I want.
Here is the entirety of the program so far.
Code:
#include <stdio.h>
#include <stdlib.h>
int n,m;
char (*x)[20];
int main()
{
printf("Please say how many names you will enter:");
scanf("%d", &n);
x = malloc(20*n*sizeof(char));
for(m=0; m<n; m++)
{
printf("\nName %d: ",(m+1));
scanf("%s", x+m);
}
for(m=0; m<n; m++)
{
printf("\nName %d: %s", (n-(m+1)+1), (x+(n-m-1)));
}
free(x);
return 0;
}
It does what it was intended to do, in reading in a given amount of names, and returning them in the reverse order.
Although from reading that example you gave, I think I may have mixed up the number for the array and the value n.