char filename[100];
char *file;
fgets(filename,100,stdin);
file =&filename;
give this warning:
warning: assignment from incompatible pointer type [enabled by default]
file =&filename;
Isn't &filename and file have the same type as address of character since i use & to get address of the variable?
Aucun commentaire:
Enregistrer un commentaire