what result after run the following code
#include<stdio.h>
void learn7_6()
{
int *ptr;
ptr=(int *)0x8000;
*ptr=0xaabb;
}
本文展示了一段C语言代码示例,该示例演示了如何直接操作内存地址进行赋值。通过定义一个整型指针并指向特定内存地址,然后对该地址所指向的内存进行写入操作。
what result after run the following code
#include<stdio.h>
void learn7_6()
{
int *ptr;
ptr=(int *)0x8000;
*ptr=0xaabb;
}
362
1886

被折叠的 条评论
为什么被折叠?