Hello World in the ISO C Programming Language
#include <stdio.h>
int main(void)
{
printf("Hello World!\n");
}The #include preprocessor introduces the C standard library stdio.h into the program,
which includes, among other things, the printf function.
The entry point to a C program is the main function.
The function body is enclosed in a block {},
which includes one statement, printf("Hello World!\n"), in this case.
"Hello World!\n" is a null-terminated C string.
If you compile and run this program, you will get the following output:
Hello World!What's Next
If you are interested in learning C programming, then you can use gcc, clang or other compiler tools.
- Next Step: C development environment setup
C++ C# Clojure Crystal D Dart Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript
