basic detail

Patrick Bégou
Tue Feb 19 14:44:00 GMT 2019


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 ?



More information about the Gcc-help mailing list