首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

指针赋值 warning: assignment from incompatible pointer type,该怎么解决

2013-11-23 
指针赋值 warning: assignment from incompatible pointer type很简单的问题char c[2]short* s (short*

指针赋值 warning: assignment from incompatible pointer type
很简单的问题

char c[2];
short* s = (short*)&c[0];


试了好多办法都没法消除这个warning,难道除了忽略,没有办法吗?
[解决办法]
VC6和VS2010都编译通过无警告错误。
[解决办法]
可以忽视掉!没有关系!

热点排行