C Programming : How to Use Comments in C Programming, With examples and interview questions

Comments in C:

  • Comments in C language can be used as describing the meaning or working of particular line of code or particular block.

  • The comments can be given to make the program code working more clear and understandable even for the person who does not code that program.

  • In precise words, Comments can be done for documenting the code. 

  • There are two types of comments in C Programming :
  1. Single line comments.
  2. Multi line comments.

➣Single line comments: Single line comments are provided by double slash //.

Example :

Single line comments example in c | C programming

➣Multi-line comments: Multi line comments are provided by Slash asterisk /*....*/.

Example :

Single line comments example in c | C programming

For any query related to the content mail to devkumar082001@gmail.com

1 comment:

  1. I feel extremely cheerful to have seen your site page and anticipate such a large number of all the more engaging circumstances perusing here. Much appreciated yet again for every one of the points of interest.
    Regularly scheduled programming


Powered by Blogger.