Point And Array你不知道的事

来源:互联网 发布:深圳市的企业数据库 编辑:程序博客网 时间:2024/06/07 21:44
#include "stdafx.h"#include <windows.h>BYTE byteTmp[MAX_PATH] ;BYTE *pTmp ;int main(int argc, char* argv[]){__asm{//array ,set the data ,not the addresspush 0x1234pop byteTmp //point ,set the address ,not the datapush 0x4321pop pTmp}//the result is//byteTmp[0] = 0x34 ,byteTmp[1] =0x12 ,but the address of byteTmp is not changed//pTmp =0x4321 ,change the value of pTmp ,of the *pTmp return 0;}

看代码,
原创粉丝点击