basic detail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux