Which of the following is not a valid variable name in C?

Options

  • A. student_name
  • B. studentName
  • C. student name
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. student name

Detailed Explanation

Correct Answer: C — student name.

Explanation: C identifiers cannot contain spaces. Use student_name or studentName instead. A space separates tokens in the source code.