Le 19/02/2019 à 16:11, Xi Ruoyao a écrit : > On 2019-02-19 15:44 +0100, Patrick Bégou wrote: >> Hi, >> >> I need a small theoritical explanation about arrays in C. > These questions are off-topic in gcc-help. It should go to comp.lang.c or > somewhere. > >> 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 ? > STFG. The first URL Google suggested for "address of array" is exactly the > answer of this question: > > https://stackoverflow.com/questions/2528318/how-come-an-arrays-address-is-equal-to-its-value-in-c Sorry Xi if I post on the bad channel. I appologize. I was thinking that implementing a compiler implied knowing in depth C specifications and that many people could answer my simple question. Thanks for the stackoverflow URL, my second mistake was to ask google but... in french "C adresse tableau" and there are so many pages speaking of arrays, pointers and addresses... this one was not listed. Patrick