
Table of Contents
ToggleC Programming Comments
There are two types of comments used in C programs. In this chapter you will learn how to use comments in C programs.
Comments are used in c programming to explain code and make it more readable.
Comments are widely used especially for documenting code.
Types of Comments
There are two types of comment in C programs:
1. Single Line Comments
2. Multi Line Comments
One Line Comment
A single line comment starts with //.
// Any text after this is ignored by the C compiler.
Example: The following example shows the use of comments in a C program:
#include
#include
void main(){
clrscr();
//Usage of print function
printf("I Love C");
getch();
}
Output
I Love C
You can even leave comments after the statement.
Multiline comments start with /* and end with */.
any text between /* and */ is ignored by the C compiler.
Example: The following example uses more than one line of comments to explain the code:
#include
#include
void main(){
clrscr();
/*print function
use */
printf("I Love C");
getch();
}
output
I love C
Pingback: C Programming Operator Precedence -
Be adjacent to us now at 1xBet benefit of the deciding online cricket betting savoir faire! We tender the subdue and most moving cricket odds recompense prodigious winnings.
Don’t coed out on the probability to prevail in obese with 1xBet!
Look over our thorough cricket betting lines and enjoy a unique and overwhelming experience like no other.
[url=https://refpa7921972.top/L?tag=s_3464116m_355c_2422859&site=3464116&ad=355&r=en/line/cricket]1xbet[/url]
Ally us at the present time at 1xBet benefit of the ultimate online cricket betting sample! We tender the outdo and most enticing cricket odds for huge winnings.
Don’t miss elsewhere on the hazard to carry the day gigantic with 1xBet!
Skim through our comprehensive cricket betting lines and fancy a unique and exhilarating experience like no other.
[url=https://refpa7921972.top/L?tag=s_3464116m_355c_2422859&site=3464116&ad=355&r=en/line/cricket]1xbet[/url]
An outstanding share! I’ve just forwarded this ono a co-worker who was conducting a little homework
on this. And he actually ordered me breakfast becauuse I found it ffor him…
lol. So allow me to reword this…. Thanks for the
meal!! Butt yeah, thanx for spending some tome to tzlk abut this issue
here on your blog. http://Boyarka-Inform.com/
Thank you for the good writeup. It if truth be told used to be a
leisure account it. Look advanced to more delivered agreeable from you!
However, how could we communicate? http://Boyarka-inform.com/
I’d like to find out more? I’d lime tto find out more details. http://Boyarka-Inform.com/