engineering computer science MCQ #2137

Which of the following is NOT a valid identifier in C?

engineering computer science MCQ #2137

  1. Question 1

    Q1. Which of the following is NOT a valid identifier in C?

    • A) _var
    • B) 2var
    • C) var_2
    • D) Var2

    Answer: 2var

    Explanation: Identifiers cannot start with a digit. 2var is correct because it matches what the question requires. NET computer science MCQs often test this core concept.