è¿ä¸ªå½æ°è¿åçæ¯ä¸ä¸ªå°åï¼ä¸è½ä½ä¸ºå·¦å¼
æ¯å¦ä½ å¨windowsä¸ç¼ç¨ï¼å½æ°è¿åå¼åæ¾å¨eaxå¯åå¨ä¸
é£ä¹åå°mainå½æ°çæ¶åeaxéåæ¾çå°±æ¯whwå½æ°è¿åçä¸ä¸ªå°åçå¼ï¼å设为0xffffffff
æ³è±¡ä¸ä¸ï¼0xffffffff = 5æ¯å 个ææï¼å°±ç±»ä¼¼äºè¡¨è¾¾å¼15 = 5
éä¸æ¥è®²whwè¿åçæ¯ä¸ä¸ªint*ç±»åï¼æä¹è½èµä¸ª5
就类似
int *p = 5ï¼ ä¹ä¼åºé
å¦æè¦ç¼è¯ä¸åºé
å¯ä»¥æ¹æè¿æ ·
int* whw(int* a);
main()
{
int p=12;
*(whw(&p))=5;
printf("*whw(&p)=%d\n",*(whw(&p)));
return 0;
}
int* whw(int* a)
{
return a;
}
温馨提示:答案为网友推荐,仅供参考