From f8ab4773aa0b27a20ad8c430e1b35f80c92d9269 Mon Sep 17 00:00:00 2001 From: AndreyT <39318261+TheCalligrapher@users.noreply.github.com> Date: Wed, 19 Jan 2022 19:20:21 -0800 Subject: [PATCH] Update C.c (#1211) 1. `()` function declarations are deprecated in modern C 2. `return 0` at the end of `main` is redundant in modern C --- c/C.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c/C.c b/c/C.c index 947c5de0..358144dc 100644 --- a/c/C.c +++ b/c/C.c @@ -1,6 +1,5 @@ #include -int main() { +int main(void) { printf("Hello World\n"); - return 0; }