basic detail

Patrick Bégou Patrick.Begou@legi.grenoble-inp.fr
Tue Feb 19 14:44:00 GMT 2019


Hi,

I need a small theoritical explanation about arrays in C.

I would like to know why using:

char A[24];

scanf("%s", A);  and scanf("%s", &A); does the same thing (as it is not
the same code).

I've checked that printing A or &A with "%p" prints the same address....
but why ?


Thanks


Patrick



More information about the Gcc-help mailing list