DEV Community

Sujith V S
Sujith V S

Posted on • Edited on

1 1 1 1 1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more