Ngôn Ngữ Python - Dãy Số Fibonacci

Lesson categories Trang chủ / C Programming / C programming language? Buy me a coffee What is C programming language? – Why use C?

C is a middle-level programming language, the C programming language was developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was first implemented on the DEC PDP-11 computer in 1972.

In 1978, Brian Kernighan and Dennis Ritchie produced the first public description of C, now known as the K&R standard.

C language was developed to create system applications that directly interact with hardware devices such as drivers, kernals etc.

The Java programming language, UNIX Operating System, C compiler and all UNIX application programs have been written in C.

C programming is considered the basis for other programming languages, which is why it is known as the mother language.

So, the C programming language can be defined as follows:

  1. Parent language.
  2. System programming language.
  3. Object-oriented programming language.
  4. Structured programming language.
  5. Mid-level programming language.

1. C as a mother language

C language is considered the mother language of all modern languages because most compilers, JVMs, Kernals etc are written in C language and most languages follow C syntax, like C++, Java etc.

It provides core concepts like arrays, functions, file handling etc used in many languages like C++, java, C# etc.

2. C as a systems programming language

A systems programming language used to create system software. The C language is a systems programming language because it can be used for low-level programming (e.g. drivers and kernel). It is commonly used to create hardware devices, operating systems, drivers, kernels etc. For example, the Linux operating system kernel is written in C.

It cannot be used in internet programs like java, .net, php etc.

3. C as a procedural language

A procedure is called a function, method, subroutine etc. A procedural language specifies a series of steps or procedures for a program to solve a problem.

A procedural language that breaks down a program into functions, data structures, etc.

C is a procedural language. In C, variables and function prototypes must be declared before being used.

4. C as a structured programming language

A structured programming language is a subset of procedural languages. Structure means breaking down a program into parts or blocks so that it can be easily understood.

In C language, we divide the program into parts using functions. It makes the program easier to understand and modify.

5. C as a mid-level programming language

C is considered a middle-level language because it supports features of both low-level and high-level languages. The C language program is converted into assembly code, which supports pointer arithmetic (low-level), but it is a self-contained calculator (high-end feature).

Low level language is specific to a machine i.e. computer dependent. It's computer dependent, fast to run. But it is not easy to understand.

High Level Language is not specific to a machine i.e. machine independent. It's very easy to understand.

Why use C?

C was originally used for system development work, especially the programs that make up the operating system. C was adopted as a systems development language because it produces code that runs almost as fast as code written in assembly language. Some examples of C usage might be:

  • Operating systems.
  • Language compilers.
  • Assemblers.
  • Text editor.
  • Print Spoolers.
  • Network Drivers.
  • Modern program.
  • Database.
  • Compiled language.

Prerequisites to learn C

Before learning C programming, you must have basic knowledge of computers.

C programming software

All C programming examples and exercises on http://hiepsiit.com use the software Dev C++introduced in the article environment settings C programming.

Start of course History of C language

Did you find this article helpful?

Support the author so they can write more quality articles!

Buy me a coffee

Từ khóa » Tính Fibonacci Python