I am attempting to display a series of questions to a user, then scan in the responses. My code builds without error, but when I run it I get errors: Expecting pointer to char but found pointer to aggregate. What are the mistakes here?
#include <stdio.h>
int main ()
{
char name[50] , lastname[50] , add[100], post[50], town[60], state[60], tel[50];
printf ("**** PLEASE ENTER THIS CONFIDENTIAL INFORMATION****");
printf ("\n=================================================\n=================================================");
printf ("\n\nFirst name:");
scanf ("%s",&name);
printf ("\nLast name:");
scanf ("%s",&lastname);
printf ("\nAddress Please:");
scanf ("%s",&add);
printf ("\nPostcode:");
scanf("%s",&post);
printf ("\ntown:");
scanf ("%s",&town);
printf("\nTelephone number:");
scanf("%s",&tel);
printf ("\n\n****CONFIDENTIAL INFORMATION****");
printf ("\n=================================================\n=================================================");
printf ("\nName:%s %s \n" ,name ,lastname);
printf ("Address:%s\n",add);
printf ("postal code:%s\n",post);
printf ("Town:%s\n",town);
printf ("State:%s\n",state);
printf ("Tel:%s\n",tel);
}