Which of the following is the valid identifier in C?
2025
Which of the following is the valid identifier in C?
- A.
global
- B.
break
- C.
while
- D.
int
Attempted by 1168 students.
Show answer & explanation
Correct answer: A
English Explanation:
In C, an identifier can be a name chosen by the programmer, but it must not be a reserved keyword. global is not a C keyword, so it can be used as an identifier. break, while, and int are reserved keywords in C, so they cannot be used as identifiers.
हिन्दी व्याख्या:
C में identifier programmer द्वारा चुना गया नाम हो सकता है, लेकिन वह reserved keyword नहीं होना चाहिए। global C का keyword नहीं है, इसलिए इसे identifier के रूप में उपयोग किया जा सकता है। break, while और int C के reserved keywords हैं, इसलिए इन्हें identifier के रूप में उपयोग नहीं किया जा सकता।