Which of the following special symbol allowed in a variable name?

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

Which of the following special symbol allowed in a variable name? Answer: _ (underscore)

Variable names in C are made up of letters (upper and lower case) and digits. The underscore character ("_") is also permitted. Names must not begin with a digit. Examples of valid (but not very descriptive) C variable names: => foo => Bar => BAZ => foo_bar => _foo42 => _ => QuUx

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.