#include <stdio.h>
char *p = "hello";
char b[] = "LINUX-WORLD";
int main()
{
char *p1 = "world";
char a[] = "linux-wrold";
printf ("%s\n", p);
printf ("%s\n", p1);
return 0;
}
Contents of section .rodata:
8048528 03000000 01000200 68656c6c 6f00776f ........hello.wo
8048538 726c6400 rld.
Contents of section .data:
804a00c 00000000 00000000 30850408 4c494e55 ........0...LINU
804a01c 582d574f 524c4400 X-WORLD.
Contents of section.text:
... ...
8048420 e55183ec 14c745f8 36850408 c745ec6c .Q....E.6....E.l
8048430 696e75c7 45f0782d 7772c745 f46f6c64 inu.E.x-wr.E.old
... ...
char **q = &a;
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |