fenby C语言 P27使用指针

时间:2015-05-15 17:09:09   收藏:0   阅读:96

使用指针

p代表地址

*p代表这个地址存放的内容

#include <stdio.h>

int main()
{
int x=100,y=200,*p1=&x,*p2=&y;
printf("x和y的值是:%d",*p1+*p2);
return;
}

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!