#include <stdio.h>
int main()
{
char *arr[3], str[100];
int i;
for(i = 0; i < 3; i++)
printf("Enter text: ");
gets(str);
arr[i] = str;
}
printf("Text: %s\n", arr[i]);
return 0;
References: C From Theory