From 13115bfb4ec3b25b2e3b171ce901730b2ac07673 Mon Sep 17 00:00:00 2001 From: Dylan Rainwater Date: Mon, 11 Feb 2019 11:18:16 -0500 Subject: [PATCH] Add block comment example and remove whitespace (#28816) * Add block comment example and remove whitespace * fix: capitalized string to match output * fix: removed > --- guide/english/c/hello-world/index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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