Think of what you are storing like a database. In a database you need a record, some feilds and the size of those fields.
Code:
#include<stdio.h>
#include <string.h>
int main (void)
{
int index1, index2;
/* 2 records with 2 fields of size 40 */
char employee[2][2][40];
char temp[40];
printf("Please Enter first and last name\n");
for(index1 = 0; index1 < 2; index1++)
for(index2 = 0; index2 < 2; index2++)
{
scanf("%s", &temp);
strcpy(employee[index1][index2], temp);
}
printf("\n\n Hello Mr %s, %s\n", employee[0][1], employee[0][0]);
printf("And hello to you Mr %s, %s\n", employee[1][1], employee[1][0]);
return 0;
}
now iv simplified things a bit, and made the output so you can see what you have enterd..
This is for two records with 2 fields of size 40
remeber the size