is ampersadn required when usign scanf for a string code example
Example 1: when to add & in snacf c
int var;
scanf("%d",&var);
Example 2: when to add & in snacf c
char s[20];
scanf("%s",s);
int var;
scanf("%d",&var);
char s[20];
scanf("%s",s);