15 printf("==========================\n");
(gdb) p * 0x7fffffffe524
$8 = 2
(gdb) p b
$9 = 2
(gdb) p &b
$10 = (int *) 0x7fffffffe524
(gdb) p &a
$11 = (int *) 0x7fffffffe51c
(gdb) x/3d 0x7fffffffe51c
0x7fffffffe51c: 3 0 2
(gdb) x/6d 0x7fffffffe51c
0x7fffffffe51c: 3 0 2 -6884
0x7fffffffe52c: 32767 1
(gdb) p * 0x7fffffffe524
$8 = 2
(gdb) p b
$9 = 2
(gdb) p &b
$10 = (int *) 0x7fffffffe524
(gdb) p &a
$11 = (int *) 0x7fffffffe51c
(gdb) x/3d 0x7fffffffe51c
0x7fffffffe51c: 3 0 2
(gdb) x/6d 0x7fffffffe51c
0x7fffffffe51c: 3 0 2 -6884
0x7fffffffe52c: 32767 1
2018-06-18
最新回答 / 總有民女想推朕
因?yàn)槔蠋煹拇a中寫(xiě)的時(shí)array[2]進(jìn)行測(cè)試的,所以結(jié)果不一樣,而且第四個(gè)和第五個(gè)輸出的值是隨機(jī)生成的,不同的電腦有差別,第六個(gè)才是array[0]
2018-06-18
最新回答 / 慕田峪1875512
應(yīng)該沒(méi)問(wèn)題的,你把程序調(diào)試到return 0再去打印str和str3的地址,因?yàn)槟愕膕tr3都沒(méi)初始化系統(tǒng)應(yīng)該沒(méi)有給他分配存儲(chǔ)空間,程序還沒(méi)運(yùn)行到那里你就打印它的地址應(yīng)該不對(duì),我是這樣理解的
2018-05-29