C Language: Identifiers

Source: Internet
Author: User
Tags naming convention

Identifiers are some of the names that programmers play in their own programs.

Attention:

1. The name of the identifier cannot be the same as the keyword, or it will cause an error

2. The name of the identifier to pay attention to certain rules, not casually named, take the names to let a person see the past know what meaning

Naming rules:

1. The identifier can only be written in the case of 26 English letters, 0~9 10 Arabic numerals, Underline _

2. Strictly case-sensitive, such as test and test is two different identifiers

3. Cannot start with a number

4. You cannot use keywords as identifiers

The naming specification is to improve the readability of the code, the company's constraints on programmers, readability is good can reduce the maintenance cost of the program, improve communication between programmers efficiency

The naming conventions note the following two points:

1. Try to make a meaningful Ming Chen, such as a complete English word, otherwise if it is a,aabb,ccfd such identifier, people and Ben do not know what the meaning of

2. If the identifier has more than one word, then in addition to the first word, the first letter of each word will be capitalized, such as: Firstname,myfirstname, such a naming convention, we call it: Hump logo

C Language: Identifiers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.