Skip to content

Commit

Permalink
docs: 🐛 definition of main function in c
Browse files Browse the repository at this point in the history
Make the definition of `main` function compatible with ISO C
`int main()` -> `int main(void)`
  • Loading branch information
Timothy-Liuxf authored Dec 4, 2022
1 parent b751ce6 commit a8af82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/languages/CSharp/CSharp_1_basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ var code1 = """int i = 0;""";
var code2 = $"""int x = {x};""";
var code3 = $$"""
#include <stdio.h>
int main() {
int main(void) {
const char *s = "{y} = {{y}}"; // {y} = 2
return 0;
}
Expand Down

0 comments on commit a8af82e

Please sign in to comment.