arning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
str1 = (int*)malloc(sizeof(int) * 30);
:16:10: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
str2 = (int*)malloc(sizeof(int) * 30);
^
10.2.10比较字符串的大小.c:18:5:
(1)malloc:assignment from incompatible pointer type -(2)declaration of function ‘gets’; ‘fgets
最新推荐文章于 2024-01-10 18:18:29 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)