Access Best Practices, Helpful How-Tos & Konnection Spotlights By BeeKonnected Super Users.
Can't find what you are looking for? Explore the BeeKonnected Video Tutorials For step-by-step instructions on every platform feature.
Watch NowComments are used to document and explain your codes and program logic. Comments are not programming statements and are ignored by the compiler, but they VERY IMPORTANT for providing documentation and explanation for others to understand your program (and also for yourself three days later).
There are two kinds of comments in C:
/*
and ends with a */
, and can span several lines.//
and lasts till the end of the current line.You should use comments liberally to explain and document your codes. During program development, instead of deleting a chunk of statements permanently, you could comment-out these statements so that you could get them back later, if needed.