A

Admin • 833K Points
Coach

Q. Which of the following is a valid comment in C?

  • (A) /* This is a comment */
  • (B) // This is a comment
  • (C) # This is a comment
  • (D) Both /* */ and //
  • Correct Answer - Option(D)
  • Views: 17
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

C supports both block (/* */) and single-line (//) comments.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.