首页 > 其他 > 详细

001 -- Pointer

时间:2017-10-05 09:52:48      阅读:272      评论:0      收藏:0      [点我收藏+]

1- definition

A variable that contains a memory address, points to somewhere in the process’ virtual address space 

2- dereference a pointer 

#include <stdio.h>
int main(int argc, char **argv)
{
int x = 42;
int *p; // p is a pointer to an integer p = &x; // p now stores the address of x printf("x is %d\n", x);
*p = 99;
printf("x is %d\n", x);
return 0;
}

 

3- pointer acrethrim 

技术分享

 

More details can be refer with the link as below_ it‘s very good (in chinese ):

http://blog.csdn.net/u011974987/article/details/52270018

001 -- Pointer

原文:http://www.cnblogs.com/Shareishappy/p/7628169.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!