C Introduction


The C language is a general-purpose high-level language originally designed by Dennis Ritchie at Bell Labs to develop the UNIX operating system. The C language was first implemented in 1972 on the DEC PDP-11 computer.

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

UNIX operating system, C compiler, and almost all UNIX applications are written in C language. C is now a widely used professional language for various reasons.

  • Easy to learn.

  • Structured language.

  • It produces efficient programs.

  • It can handle the underlying activities.

  • It can be compiled on a variety of computer platforms.

About C

  • The C language was invented for writing the UNIX operating system.

  • The C language is based on the B language, which was introduced probably in 1970.

  • The C language standard was developed by the American National Standards Institute (ANSI, full name: American National Standard Institute) in 1988.

  • As of 1973, the UNIX operating system was written entirely in C.

  • Currently, C language is the most widely used system programming language.

  • Most advanced software is implemented using C language.

  • Today’s most popular Linux operating system and RDBMS (Relational Database Management System: Relational Database Management System) MySQL are both written in C language.

Why use C?

C language was originally used for system development work, especially the programs that make up the operating system. Since the code generated by C language runs almost as fast as the code written in assembly language, C language is adopted as the system development language. Here are a few examples of using C:

  • Operating System

  • Language Compiler

  • Assembler

  • Text Editor

  • Print Spool

  • Network Drive

  • Modern Program

  • Database

  • Language Interpreter

  • Entity Tool

C Program

A C language program can be 3 lines or millions of lines. It can be written in one or more extensions In a text file named ".c", for example, hello.c. You can use "vi", "vim" or any other text editor to write your C language program.

This tutorial assumes that you already know how to edit a text file and how to write source code in a program file.