After reading Salem's post about using -Wall with the gcc compiler I decided to give it a try. I'm getting a warning that has me a little confused.
warning is
adt.c:104: warning: char format, different type arg (arg 2)
adt.c:106: warning: char format, different type arg (arg 2)
The code for those two lines are:
Code:
printf(" Last Name: ");
scanf("%s", &tln);
printf(" First Name: ");
scanf("%s", &tfn);
The two variables are:
Code:
char tln[name_len], tfn[name_len];
and name_len is defined by:
Code:
#define name_len 20
Anyone want to venture a guess on what this means? Thanks