Are variable names case-sensitive in C?

Options

  • A. Yes, total and Total are different identifiers
  • B. No, total and Total are always identical
  • C. Only when variables store integers
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. Yes, total and Total are different identifiers

Detailed Explanation

Correct Answer: A — Yes, total and Total are different identifiers.

Explanation: C is case-sensitive. Therefore, total, Total and TOTAL are treated as three distinct identifiers.