Knowledge and understanding of C language

藏色散人
Release: 2020-04-27 16:32:05
Original
3788 people have browsed it

Knowledge and understanding of C language

Understanding and understanding of c language

Interesting C language code

Recommendation: "c Language Tutorial"

Take a look at what this code outputs

#include  int main() { int i = 43; printf("%d\n", printf("%d", printf("%d", i))); getchar(); return 0; }
Copy after login

Features of C language

C The language is a procedural language with structured programming, variable scope, and recursive functionality.

Parameters passed in C language are all passed by value (pass by value). In addition, a pointer (a pointerpassed by value) can also be passed.

Different variable types can be combined using structures (struct).

There are only 32 reserved keywords, which makes naming variables and functions more flexible.

Various variable types can be converted, such as integer and character variables.

Through pointers, C language can easily perform low-level control of memory.

Compilation preprocessor (preprocessor) makes C language compilation more flexible.

Understanding C language

C is a general programming language that is widely used in the development of system software and application software. Between 1969 and 1973, in order to transplant and develop the UNIX operating system, Dennis Ritchie and Ken Thompson designed and developed it at Bell Labs based on the B language.

C language has the characteristics of high efficiency, flexibility, rich functions, strong expressiveness and high portability. It is very popular among programmers and has become the most widely used programming language in the past 25 years. Currently, C language compilers are commonly used in various operating systems, such as Microsoft Windows, Mac OS X, Linux, Unix, etc. The design of the C language has influenced many subsequent programming languages, such as C, ObjectiveC, Java, C#, etc.

In the 1980s, in order to avoid differences in the C language syntax used by various developers, the American National Standards Institute formulated a complete set of international standard syntax for the C language, called ANSI C. As a standard for C language. Relevant program development tools from the 1980s to the present generally support syntax that conforms to ANSI C.

Advantages:

1. Simple, compact, flexible and convenient

2. Rich operators

3. Rich data types

4 , The expression is flexible and practical

5. Allows direct access to the physical address and operates the hardware

6. The generated target code is of high quality and the program execution efficiency is high

7. Good portability

8, strong expressiveness

The above is the detailed content of Knowledge and understanding of C language. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!