warning: assignment makes pointer from integer without a cast
Posted a1232345
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了warning: assignment makes pointer from integer without a cast相关的知识,希望对你有一定的参考价值。
编译的时候报警告:warning: assignment makes pointer from integer without a cast
出现这个警告的原因是在使用函数之前没有对函数进行声明,未经声明的函数原型一律默认为返回int值。
这样、就相当于你调用了返回值为int的函数,并将其赋给了char*变量,所有会出现警告。
warning: assignment makes pointer from integer without a cast
warning: assignment makes pointer from integer without a cast
以上是关于warning: assignment makes pointer from integer without a cast的主要内容,如果未能解决你的问题,请参考以下文章