why do we need to put a & operator in scanf() for storing values in an integer array and not while storing a string in a char array?
i.e
int a[5];
for(i=0;i<5;i++)
scanf("%d",&a[i]);
but char s[5]; scanf("%s",s);
?
we need to pass in the address of the place we store the value,since array is a pointer to first element so in the case with int/float arrays it basically means (a+i) but what's in case of strings in C?