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

指针入门

时间:2014-06-15 20:41:58      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   code   color   cti   

  • & produces the address of its operand.

    For example,the following statements an integer variable ‘a‘ and a pointer to an integer variable ‘p‘ are declared.Then the address of the variable a is determined with the & operator and is assigned to the pointer variable.

1 int a, *p;
2 p = &a;
  • * is the indirection operator and is used with pointers to access the value being pointed to.

指针入门,布布扣,bubuko.com

指针入门

标签:style   class   blog   code   color   cti   

原文地址:http://www.cnblogs.com/listened/p/3785638.html

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