为const char * p和字符常量的区别* P [英] Difference between const char* p and char const* p

查看:86
本文介绍了为const char * p和字符常量的区别* P的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-int-const\">what是const int的* const int的* const的,INT常量*

之间的区别

 有没有为const char * p和字符常量之间的差异* P


解决方案

有些话不是以相同的顺序。

(没有语义差别,直到常量时相对于星)

Possible Duplicate:
what is the difference between const int*, const int * const, int const *

    Are there any Difference between const char* p and char const* p 

解决方案

Some of the words are not in the same order.

(there's no semantic difference until the const moves relative to the star)

这篇关于为const char * p和字符常量的区别* P的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆