Chapter 2: Problem 32
What are the two general types of comments that programmers write in a program's code? Describe each.
Short Answer
Expert verified
Answer: The two common types of comments found in programming code are single-line comments and multi-line comments. Single-line comments are used for short explanations and annotations, while multi-line comments are used for longer explanations or commenting out blocks of code for testing or debugging purposes.