C language books

Source: Internet
Author: User
Tags visual studio 2008 professional microsoft c

We can learn what software C language is used, what is C language, and other related knowledge from the C language programming tutorial. You can also learn from books.

C Language Development Process

C language was released in early 1970s. In 1978, the AT&T Bell lab officially published the C language. THE famous book "the c programming language" is also co-authored by B. W. Kernighan and D. M. Ritchit. Generally referred to as "K & R", or "K & R" standard. However, K & R does not define a complete C language. Later, the American National Standards Institute developed a C language standard based on this, which was published in 1983. It is usually called ansi c.

Features of C Language

C is a structured language. It has a clear hierarchy, which facilitates the organization of programs in a modular manner and facilitates debugging and maintenance. The C language has strong performance and processing capabilities. It not only has rich operators and data types, but also facilitates various complex data structures. It can also directly access the physical address of the memory for bit-level operations. Since C language implements hardware programming, C language integrates the functions of advanced and low-level languages. It can be used for system software development and application software development. In addition, C language features high efficiency and portability. Therefore, it is widely transplanted to various types of computers, thus forming multiple versions of C language.

C language version

Currently, the most popular C languages are as follows:
Microsoft C, or MS C
Borland Turbo C, or Turbo C
· AT & T C
These C language versions not only implement the ansi c standard, but also expand them to make them more convenient and perfect.

C Language Vocabulary

The words used in C language are divided into six categories: identifiers, keywords, operators, delimiters, constants, and comments.

1. identifier

Variables, function names, and labels used in a program are collectively referred to as identifiers. Except that the function name of the library function is defined by the system, other functions are customized by the user. C stipulates that the identifier can only be A letter (~ Z, ~ Z), number (0 ~ 9), a string composed of underscores (), and the first character must be a letter or underline.

The following identifiers are valid:

A, x, _ 3x, BOOK_1, sum5

The following identifier is invalid:
3 s starts with a number
S * T contains invalid characters *
-3x starts with a minus sign
Invalid bowy-1 character-(minus sign)
Note the following when using identifiers:
(1) Standard C does not limit the length of identifiers, but it is limited by the C language compilation systems of various versions and by specific machines. For example, in a version C, the first eight digits of the identifiers are valid. If the first eight phases of the two identifiers are the same, they are considered to be the same identifiers.
(2) there are differences in the case of identifiers. For example, BOOK and book are two different identifiers.
(3) Although the identifier can be defined by the programmer at will, it is a symbol used to identify a certain amount. Therefore, the name should be meaningful as much as possible for reading and understanding ".

2. Keywords

A keyword is a string of specific meaning specified by the C language. It is also known as a reserved word. User-Defined identifiers should not be the same as keywords. Keywords in C are classified into the following types:
(1) type specifiers
Defines and describes the types of variables, functions, or other data structures. Such as int and double used in the previous example.
(2) Statement specifiers
Indicates the function of a statement. For example, if else used in example 1.3 is the statement Definition character of the Condition Statement.
(3) pre-processing command words
Used to represent a preprocessing command. For example, include is used in the previous examples.

3. Operators

The C language contains rich operators. Operators and variables and functions form expressions together to represent various computing functions. An operator consists of one or more characters.

4. Separator

The separators used in the C language are comma and space. Commas (,) are used to separate variables in the type description and function parameter table. Multiple spaces are used as separators between words in a statement. In the keyword, there must be more than one space character interval between identifiers, otherwise there will be a syntax error, such as writing int a; into inta; the C compiler treats inta as an identifier and the result will inevitably go wrong.

5. Constants

Constants used in C can be divided into numeric constants, character constants, string constants, symbol constants, and escape characters. In the second chapter, we will give a special introduction.

6. annotator

The C-language annotator is a string starting with "/*" and ending. Comments between "/*" and. During program compilation, no comments are processed. Annotations can be output anywhere in the program. A comment is used to indicate or explain the meaning of a program to the user. In the debugging program, temporarily unused statements can also be included in comments so that translation skipping is not processed. After debugging, the comments are removed.


For students who have just entered the computer programming industry, learning what software to use in C language is indeed a headache, the following article recommends some programmers who are new to computer programming to learn what software C language is used.

Win-tc Chinese edition

Turbo C

Visual Studio 2008 Professional Edition

VC ++ 6.0


Related Article

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.