What is the correct Hello, World! program in C?
Since the first page of Google results for "c hello world" vary greatly and many are old C, I would like the standard version in one place for easy copy and paste.
Depends how lazy you are: :)
#error Hello World
I believe this is a standard Hello, World! program in C:
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With