摘要:
const与指针类型定义一个指针*p:const int* p = NULL;int const* p = NULL;int* const p = NULL;上面两行定义完全等价,第三行则不同。下面两行定义也完全等价:const int* const p = NULL;int const* const p = NULL;举例说明:int x = 3;const int* p = &x;//p=&y... 阅读全文
posted @ 2020-02-25 18:53
风追少年17
阅读(390)
评论(0)
推荐(0)

浙公网安备 33010602011771号