[問題] 指標和雙重指標考題
看板C_and_CPP (C/C++)作者SNSDpk5566 (5566 超強)時間12年前 (2012/09/12 11:24)推噓1(1推 0噓 9→)留言10則, 5人參與討論串1/3 (看更多)
Hello:
我最近寫題目 寫到一題
不知道答案是什麼 自己用 VC跑 竟然跑不出來
想請教一下各位
char d[3] = {100,200,300};
int *p = &d;
int **pn = &p;
*p -= 1;
p = &d[1];
**p+=1;
p--;
求 *p , **p, d[0] d[1]
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.210.106.78
※ 編輯: SNSDpk5566 來自: 218.210.106.78 (09/12 11:24)
推
09/12 11:29, , 1F
09/12 11:29, 1F
→
09/12 11:31, , 2F
09/12 11:31, 2F
→
09/12 11:34, , 3F
09/12 11:34, 3F
→
09/12 11:34, , 4F
09/12 11:34, 4F
→
09/12 11:38, , 5F
09/12 11:38, 5F
→
09/12 11:38, , 6F
09/12 11:38, 6F
→
09/12 11:38, , 7F
09/12 11:38, 7F
→
09/12 11:39, , 8F
09/12 11:39, 8F
→
09/12 11:44, , 9F
09/12 11:44, 9F
→
09/12 13:42, , 10F
09/12 13:42, 10F
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章