Introduction: –
C is a general purpose, structured based and mid Level Programming Language. It is developed by Dennis Ritchie in bell laboratories of AT&T (American Telephone & Telegraph), located in U.S.A. in 1972. C programming is considered as the base for other programming languages, that is why it is known as mother language. It works on various platforms i.e Window XP/7/8.1/10 and UNIX OS. It is easy to learn and can handle low level activities.C Programming can be defined in the following ways: –
1) Mother language: –
C programming language is considered as mother language for all the modern languages because most of the compilers, JVMs, Kernals etc. are written in C programming language. C++, Java and most of languages follow the syntax of C Programming language.2) Mid level programming language: –
C language is considered as middle level language because itSupports the feature of both low-level language and high level language
3) System programming language: –
C programming language is considered as system programming language because it is used to create system software. It is also used to create hardware devices such as drivers, kernels, OS and many more.Linux Kernal is also written in C.4) Procedure-oriented programming language: –
C Procedural language breaks the program into functions, data structures etc. A procedure language is known as function, method, routine, subroutine etc. A procedural language specifies a series of steps or procedures for the program to solve the problem.5) Structured programming language: –
A structured programming language is a subset of procedural language. Structure means to break a program into parts or blocks so that it may be easy to understand. We can break the programs into parts using functions. It makes the program simple and easierProgramming languages that were developed before C programming language.
| Language | Year | Developed By |
| Algol | 1960 | International Group |
| BCPL | 1967 | Martin Richard |
| B | 1970 | Ken Thompson |
| Traditional C | 1972 | Dennis Ritchie |
| K & R C | 1978 | Kernighan & Dennis Ritchie |
| ANSI C | 1989 | ANSI Committee |
| ANSI/ISO C | 1990 | ISO Committee |
| C99 | 1999 | Standardization Committee |
First Program: –
#include<stdio.h> /* # refers to pre-processor directive, include is used for including a file and .h is a extension for header files*/#include<conio.h>
void main()
{
clrscr(); //clear the screen
printf("Hello Sahil");
getch(); //holds the screen
}
Explanation:-
- stdio maens standard input output library functions
- conio means console input output library functions
- main means program strats from main
- printf, scanf is under stdio.h
- Clrscr, getch is under conio.h
- Compiler check the program from main
Next Topic Features of C
No comments:
Post a Comment