I have written a code and when i am compiling it i am getting an error as follow kindly help me to sort out this..
sosdt011@sosdt011:~/mysample$ gcc -o fir first.c
first.c: In function ‘main’:
first.c:14:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[300]’ [-Wformat=]
fscanf(fp,"%s%s%s",&name,&city,&dept);
^
first.c:14:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘char (*)[300]’ [-Wformat=]
first.c:14:3: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[300]’ [-Wformat=]