Difficulty: Easy
Correct Answer: p o t
Explanation:
Introduction / Context:C identifiers must follow lexical rules so the compiler can tokenize code reliably. This question targets the prohibition of whitespace inside identifiers.
Given Data / Assumptions:
Concept / Approach:Test each candidate against the rules, especially whether it contains spaces. Any name with a space is not a single identifier.
Step-by-Step Solution:
Check 'p o t' → contains spaces → not a single token → invalid identifier.Check 'po_t' → letters and underscore only → valid.Check 'p_o_t' → letters and underscores only → valid.Check 'pot' → letters only → valid.Verification / Alternative check:Attempting to compile 'int p o t;' would be parsed as tokens 'int', 'p', 'o', 't' (three separate identifiers), producing a syntax error. The others would compile (barring redefinitions).
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:p o t
Discussion & Comments