Check out example codes for "when to add & in snacf c". It will help you in understanding the concepts better.

Code Example 1

int var;
scanf("%d",&var);

Code Example 2

char s[20];
scanf("%s",s);

Learn ReactJs, React Native from akashmittal.com