69,371
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<stdlib.h>
main()
{
int i1 = 5;
int i2 = 20;
int const *p = i1;
printf("i1 =%d, &i1=%d", i1,&i1);
printf("p= %d, *p=%d", p, *p );
getchar();
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i1 = 5;
int i2 = 20;
int const *p = &i1;
printf("i1 =%d, &i1=%d", i1, &i1);
printf("p= %d, *p=%d", p, *p);
getchar();
return 0;
}
#include<stdio.h>
#include<stdlib.h>
main()
{
int i1 = 5;
int i2 = 20;
int const *p = &i1;
printf("i1 =%d, &i1=%x", i1, &i1);
//加断点看下
printf("\np= %x, *p=%d", p, *p);
getchar();
}