C comment 1

C comment

/* comments in c work like this */

/*they can be one line...*/


printf("Hello World"); /* you can comment in the same line with code */

Here is what the above code is Doing:
1. We’re using the printf function to print the string “Hello World” to the screen.
2. We’re using the return 0; statement to end the main function.
3. We’re using the // symbols to make comments in the code.
4. We’re using the /* */ symbols to make a multi-line comment.

Similar Posts