[OT] basic detail
Tue Feb 19 15:11:00 GMT 2019
On 2019-02-19 15:44 +0100, Patrick BÃ©gou wrote:
> 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
> I would like to know why using:
> char A;
> 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:
Xi Ruoyao <email@example.com>
School of Aerospace Science and Technology, Xidian University
More information about the Gcc-help