What are the symbols that are already in the C language with special meanings and cannot be used for

Updated on technology 2024-04-27
8 answers
  1. Anonymous users2024-02-08

    The so-called "words and symbols with special meanings that are already in the C language" refer to the "reserved words" of the C language, such as for, while, if, etc., and cannot be used for other purposes of the user.

  2. Anonymous users2024-02-07

    The C language stipulates that identifiers can only consist of three characters: letters, numbers, and underscores, and that the first character must be a letter or underscore.

    Listed below are valid identifiers that can be used as variable names:

    A acds su 1 2 class The identifiers listed below are invalid and cannot be used as variable names:

    12a %acds #su 1_2 a>b

  3. Anonymous users2024-02-06

    To put it simply!

    Can only consist of character numbers underscored! Must start with a character and an underscore (no case sensitive).

    You can't define a good keyword for the system.

  4. Anonymous users2024-02-05

    (1) The first character must be a letter (case-insensitive) or an underscore ( ).

    2) followed by letters (caseless), underscores ( ) or numbers;

    3) There is a difference between uppercase and lowercase letters in the identifier. For example, the variables sum, sum, and sum represent three different variables;

    4) It cannot have the same name as a reserved identifier (i.e., keyword) that has been predefined by the C compilation system and has a special purpose. For example, identifiers cannot be named float, auto, break, case, this, try, for, while, int, char, short, unsigned, etc.

  5. Anonymous users2024-02-04

    As an identifier, the following rules must be met:

    1.All identifiers must begin with a letter (a z, a z) or an underscore ( );

    2.The rest of the identifier may be composed of letters, underscores, or numbers (0 9);

    3.Uppercase and lowercase letters represent different meanings, i.e., different identifiers;

    4.The identifier is valid only for the first 32 characters;

    5.Keywords cannot be used for identifiers.

  6. Anonymous users2024-02-03

    Legal identifier: Consists of letters, digits, and underscores and must begin with a letter or underscore.

    Invalid identifiers: Keywords cannot be used, identifiers cannot be the same as library functions, numbers cannot be prefaced, and special characters cannot be used.

    Hope it helps!!

  7. Anonymous users2024-02-02

    Identifiers in C are made up of letters, numbers, and underscores.

    The identifier cannot begin with a letter, and the identifier cannot be the same as a keyword in C (e.g., int, double).

    Here's the correct identifier:

    a,_a,a1,_a1

    The following is the wrong identifier:

    1a,float,a#

  8. Anonymous users2024-02-01

    1. The identifier consists of a-z, a-z, 0-9 and (underscore).

    2. Numbers cannot be used as identifiers, and in principle, they do not need to be used as the beginning.

    3. The identifier cannot be the same as the C language keyword.

Related questions
15 answers2024-04-27

Indicates that the remainder of 6 is taken.

In the C language, % stands for remainder (or modulo operation). >>>More

13 answers2024-04-27

C language is a must language for programmers, and all languages are basically built on C language, it is the foundation of computer language, as a programmer must learn hard.

6 answers2024-04-27

Understand the following rules: 1) Overloading an operator does not change the priority of the operator. >>>More

7 answers2024-04-27

do is used to loop.

For example. int i=1,sum=0; >>>More

8 answers2024-04-27

It is the return value of the subfunction, and the main function also has a return value, but it is generally not used and ignored. >>>More