added comments to example (#23656)

This commit is contained in:
kzellers
2018-11-17 02:47:48 -08:00
committed by Aditya
parent 1fbaf9300e
commit 8bfe0c8ce6

View File

@ -12,8 +12,10 @@ To write on console you can use the function `printf()` contained in the library
int main(void) int main(void)
{ {
//lines starting with this are called comments, so use them to write notes to the reader about your code!
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
return 0; return 0;
} }