hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Which of the following is a valid identifier name as per the naming rules of the 'C' language?
    Question

    Which of the following is a valid identifier name as per the naming rules of the 'C' language?

    A.

    45 USD

    B.

    Final-Examination

    C.

    Reminder4

    D.

    45 Percent

    Correct option is C

    In the C programming language, an identifier is the name used for variables, functions, arrays, etc. To be valid, an identifier must follow these rules:
    Rules for Valid Identifiers in C:
    Must begin with a letter (A–Z or a–z) or an underscore (_).
    Cannot start with a digit (0–9).
    Can contain letters, digits, and underscores but no special characters (e.g., -, $, %).
    Cannot be a reserved keyword in C.

    test-prime-package

    Access ‘PSPCL’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    354k+ students have already unlocked exclusive benefits with Test Prime!
    test-prime-package

    Access ‘PSPCL’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    354k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow