diff --git a/guide/english/c/hello-world/index.md b/guide/english/c/hello-world/index.md index bcf06378f8..24ced793fa 100644 --- a/guide/english/c/hello-world/index.md +++ b/guide/english/c/hello-world/index.md @@ -9,14 +9,14 @@ To write on console you can use the function `printf()` contained in the library ```C #include - + + /* Any text in between these two characters is a block comment. + Block comments, unlike inline comments, can span multiple lines. + Comments are ignored by the compiler and will not be executed. + */ int main(void) { - printf("hello, world\n"); // lines starting with this (//) are called comments.. - - //this code prints "Hello World!" - printf("Hello World!\n"); //<-- the \n character prints a newline after the string - + printf("Hello, World!\n"); // lines starting with double forward-slash are called inline comments.. return 0; } ``` @@ -31,7 +31,7 @@ To write on console you can use the function `printf()` contained in the library ## Output: ``` - >Hello, World! + Hello, World! ``` #### More Information