我定义了以下常量:
#define SIZE 1;
然后使用如下:
foo = calloc(SIZE, sizeof(char));
为什么我会得到这个:
Error: too few arguments in function call
最佳答案
在#define
中去掉;
。这正在扩展到:
foo = calloc(1;, sizeof(char));
关于c - 使用常量时报错: too few arguments in function call,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29686421/