![]() ![]() You should use comments liberally to explain and document your codes. End-of-line Comment: begins with // and lasts till the end of the current line.Multi-line Comment: begins with a /* and ends with a */, and can span several lines.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). Printf("The absolute difference is %d.\n", absDiff) Ĭomments are used to document and explain your codes and program logic. Printf("The sum of even numbers is %d.\n", sumEven) Printf("The sum of odd numbers is %d.\n", sumOdd) Scanf("%d",
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |