c - 打印函数,C语言的hello world

几天前开始阅读 C,我正在尝试学习如何将我的代码拆分为函数,谁能告诉我为什么它不为我打印“hello world”?


#include <stdio.h>


void PRINT(){

    printf("hello world");
}



int main() {    

   void PRINT();
   
}

最佳答案

你应该这样调用这个函数:

int main() {    
  PRINT();
}

https://stackoverflow.com/questions/65177083/

相关文章:

wordpress - Disqus iframe 透明度不适用于 Chrome 87

java - Config Client 在 Spring boot 中不工作

kubernetes - 如何使用 HELM 强制重新部署

python - 删除txt中的特定字符

python - For循环遍历Python中的列表

r - 使用向量和定义的标量在 R 中生成金字塔

scala - scala中以下两种模式匹配案例有什么区别

flutter - 查看 .pub-cache 文件给出 Request textDocument/

python - Pandas DataFrame - 将列转换为 JSON 并添加为新列

asp.net-core - 415 ASP.NET Core Web API 中不支持的媒体类型