Online visitors

People learning around the world

Online

—

Visitors exploring W3Schools

Online visitors by country Circles show approximate country locations. The country list provides the visitor counts.

Circles represent countries, not exact visitor locations.

Country

Online

Loading country activity…

    C Identifiers

    C Identifiers are names given to different entities such as constants, variables, structures, functions, etc. This tutorial describes C Identifiers.

    Example:

    int amount;
    
    double totalbalance;

    In the above example, amount and totalbalance are identifiers, and int and double are keywords.

    Rules for Naming Identifiers

    • An identifier can only have alphanumeric characters (a-z , A-Z , 0-9) (i.e. letters and digits) and underscore( _ ) symbol.
    • Identifier names must be unique.
    • The first character must be an alphabet or underscore.
    • You cannot use a keyword as an identifier.
    • Only the first thirty-one (31) characters are significant.
    • It must not contain white spaces.
    • Identifiers are case-sensitive.

    Identifiers in C - Video Tutorial

    Please watch this video tutorial to understand "C Identifiers" in more depth.



    Found This Page Useful? Share It!
    Get the Latest Tutorials and Updates
    Join us on Telegram

    Notifications

    Updates are enabled for this browser.

    Receive new tutorials, articles and learning resources. You can turn updates off anytime.