Dan_Saks_const_T_vs_T_const

时间:2016-04-28 14:50:01
【文件属性】:

文件名称:Dan_Saks_const_T_vs_T_const

文件大小:129KB

文件格式:PDF

更新时间:2016-04-28 14:50:01

const

关于C语言中const的用法。以下摘自原文:In my last column, I discussed one of the reasons why the rules by which a compiler can place data into ROM are a bit more complicated in C++ than they are in C. 1 I have more to say about that subject, but before I do, I’d like to reply to the following query I received through e-mail from Phil Baurer at Komatsu Mining Systems: “We’re having an interesting prob- lem using const with a typedef. I hoped you could comment on this sit- uation. I am wondering if we are bumping into some unknown (by us) rule of the C language. “We are using the Hitachi C com- piler for the Hitachi SH-2 32-bit RISC microcontroller. We thought the fol- lowing code:


网友评论