using & in scanf 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);