#include <stdio.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
char name[] = "Hello World";
printf("%p\t", &name);
printf("%p\t", name);
printf("%p\t", &name[0]);
printf("%p\t", &(*(name)));
printf("%s\t", name);
}
./a.out
0x7fff527f44cc 0x7fff527f44cc 0x7fff527f44cc 0x7fff527f44cc Hello World
#include <stdio.h>
int main(int argc, char *argv[]) {
char name[] = "Hello World";
printf("%p\t", &name);
printf("%p\t", name);
printf("%s\t", name);
}
./a.out
0x7fff594314cc 0x7fff594314cc Hello World