Concept of C programming language and some characteristics
- 24-07-2022
- Toanngo92
- 0 Comments
Mục lục
1. Concept and development history of C . programming language
C language developed by Dennis Ritchie is a fairly old language with a structure-oriented writing style, for the purpose of developing computer system applications that interact directly with hardware devices such as drivers. drivers, printers, operating systems, etc. The unix operating system (one of the most famous but not free operating systems) is written in the C programming language.
2. Reasons why you should learn the C programming language
Let's think in the most understandable way that computers are designed based on electronic hardware devices, so they can only understand the concept of switching on and off of current (1 is on, 0 is off), equivalent to likewise, computers will in essence understand and execute binary contents (101010…) and execute according to the rules. To do that, the computer needs a compiler (which can in fact be a dictionary) that translates human-written content into binary. And similarly, modern programming languages continue to adhere to this style for development, most compilers, operating systems, … are written in C language and most of the Programming languages are all based on C syntax. typical are C++, Java, C#, Nodejs, PHP…
For that reason, universities as well as programming training units often introduce C or C++ language to
3. Some features of C . programming language
1. C is a process language
We understand a process in this context as a brief description of a list of jobs for the computer to execute, they are defined by functions, programs, subroutines, etc… a series of tasks that help to break down a program into different functions to solve a particular problem or describe a task that needs to be reused
C is a procedural language. In C language, variables and function prototypes need to be declared before they are used (this concept will be covered in the following articles).
2. C is a Structured Programming Language
A structured programming language is a child of a process language. Structure means to divide the program into parts or blocks so that it can be easily understood
In C language, we divide the program into different components using functions. It makes the program easier to understand and modify and is re-usable which improves programming time.
3. C is a middle-level programming language
C is considered a middle-level language because it has both low- and high-level features. A program written in C language converted into machine code, has the concept of (low-order) arithmetic pointers, but it is machine-independent (a high-order feature) i.e. can run on many machines. different with black screen environment. (C language => Assembly => Binary => Execution)
A low-level language used specifically for a single computer, depending on the machine. It depends on the machine, high performance because it doesn't have to compile a lot, so it runs fast, but it's hard to understand. (Can learn the concept of assembly language – Assembly for more reference). ( Assembly => Binary => Execution)
Computer-independent high-level language, programming is relatively accessible, but the performance is lower than the other two because it requires more compilation (high level => C language (middle level) =>> Assembly => Binary => Execution ).