C语言学习指针一

#include <stdio.h>
main()
{
    int a,b,c;
    int *e;
    int d[2]={0};
    e=&a;
    printf("%d,%d\n",a,&a);
    printf("%d,%d\n",a,a);
    printf("%d,%d\n",b,&b);
    printf("%d,%d\n",c,&c);
    printf("%d,%d\n",d,&d);
    printf("%d,%d\n",d[0],d[1]);
    printf("%d,%d\n",&d[0],&d[1]);
    printf("%d\n",*e);
    printf("%d\n",e);
    getchar();
 }

 

 

posted @ 2022-08-21 16:17  myrj  阅读(20)  评论(0编辑  收藏  举报