首页 > 其他 > 详细

const int *

时间:2015-10-09 12:11:01      阅读:183      评论:0      收藏:0      [点我收藏+]

5.Please choose the right statement about constusage:

  A.const int a;//const interger

  B.int const a;//const integer

  C.int const *a;//a pointer while point to const interger

  D.const int *a;//a const pointer which point to interger

  E.int const *a;//a const pointer which point to interger

解析:

  正确答案:ABC

  对于A和B,int const和const int可以颠倒位置,意义不变

  CDE都表示const int的指针,而int *const a才表示指向int的const指针。

 

const int *

原文:http://www.cnblogs.com/QoQian/p/4863366.html

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