码迷,mamicode.com
首页 > 其他好文 > 详细

001 -- Pointer

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

标签:es2017   csdn   img   clu   images   amp   more   span   .net   

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

标签:es2017   csdn   img   clu   images   amp   more   span   .net   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!