1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 10:14:58 +02:00

main() -> main(void) & fix spacing in c.html.markdown

This commit is contained in:
Joe Savage
2015-08-29 11:58:03 +01:00
parent 85d80b9e5d
commit 7cb94b3b85

View File

@@ -55,7 +55,7 @@ int add_two_ints(int x1, int x2); // function prototype
// Your program's entry point is a function called
// main with an integer return type.
int main() {
int main(void) {
// print output using printf, for "print formatted"
// %d is an integer, \n is a newline
printf("%d\n", 0); // => Prints 0