what is c ?


C is programming language


First understand what is Program ?

Program is a set of instruction to perform some particular work to the Computer.
It is a set of logic to perform some event in a Machine.
Program is a collection of different activities. like
collection of all activity are called program

What is Language ?

We communicate with people using language like hindi , english etc, computer also has a language that is called machine language. we directly can not communicate with computer with the help of compiler it is possible. compiler convert program code into machine language.



What is c programming ?

C is a powerful general-purpose programming language. It is a procedural, imperative computer programming language It was initially developed by Dennis Ritchie between 1969 and 1973 to develop the UNIX operating system. C is the most widely used computer language.

C is also called mother Language of all programming Language This language is used for develop system software and Operating System. All other programming languages were derived directly or indirectly from C programming concepts.

Features of C

It is a very simple and easy language, C language is mainly used for develop desktop based application.This language have following features;

History of C

C language is developed by Mr. Dennis Ritchie between 1969 and 1973 at bell laboratory at USA, C is a simple and structure Oriented Programming Language. In the year 1988 C programming language standardized by ANSI (American national standard institute), that version is called ANSI-C. In the year of 2000 C programming language standardized by ISO that version is called C-99. All other programming languages were derived directly or indirectly from C programming concepts

What is Compiler ?

A compiler is system software which converts programming language code into binary format in single steps.In other words Compiler is a system software which can take input from other any programming language and convert it into lower level machine dependent language.
Responsive image


Interpreter

It is system software which is used to convert programming language code into binary format in step by step process.

Assembler

An assembler is system software which is used to convert the assembly language instruction into binary format in step by step process. An assembler is system software which is used to convert the assembly language instruction into binary format.

The difference between an interpreter and a compiler

InterpreterCompiler
Translates program one statement at a time.Scans the entire program and translates it as a whole into machine code.
It takes less amount of time to analyze the source code but the overall execution time is slowerIt takes large amount of time to analyze the source code but the overall execution time is comparatively faster.
No intermediate object code is generated, hence are memory efficient.Generates intermediate object code which further requires linking, hence requires more memory.
Continues translating the program until the first error is met, in which case it stops. Hence debugging is easy.It generates the error message only after scanning the whole program. Hence debugging is comparatively hard.
Programming language like Python, Ruby use interpreters.Programming language like C, C++ use compilers.


Video:- what is programming language by shankar sir