找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 260|回复: 1

Question1.18:I’ve got the declarations Why is p turning out const...?

[复制链接]

210

主题

371

回帖

0

积分

管理员

积分
0
发表于 2013-7-17 20:14:32 | 显示全部楼层 |阅读模式
Q: I've got the declarations
                          typedef char *charp;
                           const charp p;
Why is p turning out const, instead of the characters pointed to?

A: See question 11.11.

210

主题

371

回帖

0

积分

管理员

积分
0
 楼主| 发表于 2013-7-17 20:18:49 | 显示全部楼层
问题:我有声明如下:
          typedef char *charp;
                  const charp p;
为什么它指向的字符是是p而不是const?
回答:参考问题11.9。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

果子博客
扫码关注微信公众号

Archiver|手机版|小黑屋|风叶林

GMT+8, 2026-2-2 04:20 , Processed in 0.082202 second(s), 20 queries .

Powered by 风叶林

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表