文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>C语言中的undefined behavior系列(5) -- not compatible type

C语言中的undefined behavior系列(5) -- not compatible type

时间:2010-08-31  来源:嗷嗷

— Two declarationsof the same object or function specify types that are not compatible(6.2.7).

    char c = 'a';
char *pc = &c;
int *pi;
void *pv;
pi
= pv = pc; //这里没有编译错误或警告
//pv = pi =pc; //这样写的话会有一个warning a value of type "char *" cannot be assigned to an entity of type "int *"
*pi = 10; //undefined behavior

 

 

 

相关阅读 更多 +
排行榜 更多 +
狙击小动物手游

狙击小动物手游

飞行射击 下载
全民吃鸡模拟器手机版

全民吃鸡模拟器手机版

飞行射击 下载
车祸救援模拟器无敌版

车祸救援模拟器无敌版

赛车竞速 下载