Which of the following is the valid identifier in C?

2025

Which of the following is the valid identifier in C?

Answer: A. globalEnglish 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…

  1. A.

    global

  2. B.

    break

  3. C.

    while

  4. D.

    int

Attempted by 1493 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 के रूप में उपयोग नहीं किया जा सकता।

Explore the full course: Bihar Stet Paper Ii Computer Science

Loading lesson…