added comments to example (#23656)

pull/21703/head^2
kzellers 2018-11-17 02:47:48 -08:00 committed by Aditya
parent 1fbaf9300e
commit 8bfe0c8ce6
1 changed files with 4 additions and 2 deletions

View File

@ -12,8 +12,10 @@ To write on console you can use the function `printf()` contained in the library
int main(void)
{
printf("Hello World!\n"); //lines starting with this are called comments..
//lines starting with this are called comments, so use them to write notes to the reader about your code!
//this code prints "hello, world"
printf("hello, world\n"); //<-- the \n character prints a newline after the string
return 0;
}