几天前开始阅读 C,我正在尝试学习如何将我的代码拆分为函数,谁能告诉我为什么它不为我打印“hello world”?
#include <stdio.h>
void PRINT(){
printf("hello world");
}
int main() {
void PRINT();
}
最佳答案
你应该这样调用这个函数:
int main() {
PRINT();
}
https://stackoverflow.com/questions/65177083/