Tag: 订单

函数声明顺序在c语言中是重要的还是我做错了什么?

我收到此错误: arthur@arthur-VirtualBox:~/Desktop$ gcc -o hw -ansi hw1.c hw1.c: In function `main’: hw1.c:27:16: warning: assignment makes pointer from integer without a cast [enabled by default] hw1.c: At top level: hw1.c:69:7: error: conflicting types for `randomStr’ hw1.c:27:18: note: previous implicit declaration of `randomStr’ was here 在编译此代码时: #include #include int main(int argc, char** argv) { char *rndStr; rndStr […]