#include <stdio.h>
void main()
{
int i=1,j=2;
char s[]="123456";
char d[]="123";
printf("i=0X%08X\nj=0X%08X\ns=0X%08X\nd=0X%08X\nprintf=0X%08X\n",&i,&j,s,d,printf);
}
C语言 变量在内存的地址分布
最新推荐文章于 2023-12-22 15:14:38 发布
#include <stdio.h>
void main()
{
int i=1,j=2;
char s[]="123456";
char d[]="123";
printf("i=0X%08X\nj=0X%08X\ns=0X%08X\nd=0X%08X\nprintf=0X%08X\n",&i,&j,s,d,printf);
}