Home > Article > Backend Development > The difference and connection between C++ and C language
The difference and connection between C and C language
1. C language is process-oriented, while C is object-oriented;
2. In C language, structures only have member variables, but no member methods. In C, structures can have member variables and member functions;
3. C is derived from C language developed in.
Video tutorial recommendation: "Basic Principles and Practice of Linux C Language Programming" "C Game Project: Chinese Chess Development Video Tutorial"
C
C is the inheritance of C language. It can not only perform procedural programming of C language, but also perform object-based programming characterized by abstract data types. Programming, you can also conduct object-oriented programming characterized by inheritance and polymorphism. While C is good at object-oriented programming, it can also perform process-based programming. Therefore, C is big or small in terms of the size of the problem it can adapt to.
C not only has the practical features of efficient computer operation, but is also committed to improving the programming quality of large-scale programs and the problem description capabilities of programming languages.
C
C language is a process-oriented computer programming language, which is different from object-oriented programming languages such as C and Java. The design goal of the C language is to provide a programming language that can be easily compiled, handle low-level memory, generate only a small amount of machine code, and can run without any runtime environment support. C language describes problems faster than assembly language, has less workload, good readability, and is easy to debug, modify and transplant, while the code quality is equivalent to assembly language. C language is generally only 10% to 20% less efficient than the target program generated by assembly language code. Therefore, C language can write system software.
At the current stage, in the field of programming, C language is widely used. It takes into account the advantages of high-level language and assembly language and has greater advantages than other programming languages. Computer system design and application programming are the two major areas of C language application. At the same time, the C language is highly universal and can be applied in many computer operating systems with remarkable efficiency.
Von Neumann proposed several ideas of modern computers in 1945, which are called von Neumann's ideas by later generations. This is a milestone in the history of computer development. Most of its structures have been used since 1945, so von Neumann is called the father of computers. His architecture computer consists of five major components: arithmetic unit, controller, memory, input device, and output device. C language has a complete theoretical system and has a long history of development. It plays a decisive role in programming languages.
Recommended tutorial: "C#"
##
The above is the detailed content of The difference and connection between C++ and C language. For more information, please follow other related articles on the PHP Chinese website!