I was confused about such a fact:
when I declare a array of char type like the following:
char name[30]="scott";
then I have a printf statement:
printf("Addr: %x\n&Addr: %x\n", name, &name);
I got the same value of these two address.
who can tell me the reason about this?
Thanks in advance
when I declare a array of char type like the following:
char name[30]="scott";
then I have a printf statement:
printf("Addr: %x\n&Addr: %x\n", name, &name);
I got the same value of these two address.
who can tell me the reason about this?
Thanks in advance