DEV Community

Sujith V S
Sujith V S

Posted on • Updated on

Comments in C

In programming we can write comments in two ways. One is single line comments and the other is multi-line comments.

Single line Comment

// must be used to create single line comment.

Shortcuts:
win: ctrl + /
mac: cmd + /

Multi-line Comment

/* */ must be used to create multi-line comment.

Shortcuts:
win: ctrl + shift + /
mac: cmd + shift + /

Top comments (0)