相关文章推荐
暴走的豆芽  ·  ASP.NET Core Web ...·  1 年前    · 

main.c:10:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

主要原因是在源文件中没有声明函数

未经声明的函数原型一律默认为返回int值(4个byte)
定义赋值的指针变量(8个byte)

所以发生警告