printf("Enter your first name:\t");
scanf("%s", &f_name);
the '&' you should be missing,because the array name is the address of the first,scanf("%s",f_name),you should learn the array in c,the following is the same situation.good luckly.
I'am also a new programer.
}