Use of Comments in Programming

This question may be arising in your mind about comment word. You might be thinking that why to use the comment in the program and what is the use of comments? Whether it is a part of program or whether it is important to add comment for running of the program so I will answer all your doubt in your mind.

Comments are unexecutable part of any program written in any language.It is added in programs just for reference.

Suppose you have written a 100+ line program to get a Output.Well you might be knowing the full program right now.But what if others will open your program and try to understand.He may not understand your program because may be he is a new programmer or any other reason.

So,Comments are added after some line to show why this concept is used here for the future reference so that if you or any other person will open that particular program then he can understand the whole program if you have inserted comments at important lines of the program.

So,My advice is to use comment /* comment */ so that it will be beneficial in the future to understand your past program.

Tips: You can right any thing starting with // or /// to show as a comment or you can also use /* wrie here */ to write your comments for that program.

This is all about Comments.If you have any comment then please share here.

Thank you.

Pankaj Gupta

Like it on Facebook, Tweet it or share this article on other bookmarking websites.

Comments (0)

There are no comments posted here yet

How many of you dare to wear whites during rainy season?

Do you like wearing white to the point that you continue wearing whites even in the rainy season?
No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum 0 answer(s) and maximum 5 answer(s).
[{"id":"22777","title":"Yes","votes":"15","type":"x","order":"1","pct":20.27,"resources":[]},{"id":"22778","title":"No","votes":"20","type":"x","order":"2","pct":27.03,"resources":[]},{"id":"22779","title":"I have mostly whites in my wardrobe, so can't avoid it","votes":"4","type":"x","order":"3","pct":5.41,"resources":[]},{"id":"22780","title":"I can't dare since I don't have any white outfit ","votes":"12","type":"x","order":"4","pct":16.22,"resources":[]},{"id":"22781","title":"I love whites, and don't mind wearing it even during the rainy season","votes":"23","type":"x","order":"5","pct":31.08,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
bottom 200
No married couple wants to end up getting divorced. It is not like they have planned for it. They try to put up with their partners for as long as they
Due to our modern lifestyle, we feel that digestion related disorders are a common problem. Thus, we neither give importance to them nor seek any help
The bond of marriage brings the two people together. Initially, everything may seem okay and both of them slowly start discovering each other in the journey.
Your online reputation is important You should know that it takes decades to make your reputation but to ruin it you need just couple of minutes and this
Basics of Cookies is Asp.Net Through this article you are able to know about the following points:1> What are the cookies?2> How to write and read cookies
  Introduction A Web server hosts information in the form of HTML files. The Web server is usually passive and merely acts as an efficient interface
Best language to learn .NET language is the best thing to learn. It has somewhat similar syntax as java and it’s a Microsoft Technology moreover it
If you decide to have an  opt-in list is not just a matter of sending your subscribers your promotional newsletters or catalogs. There are several things