C Tutorials
- What is C?
- History Of C?
- Feature of C?
- How to Install C?
- How to write c program?
- First c program
- Flow of C program
- printf() and scanf() in C
- C Program Structure
- Variables in C
- Data Types in C
- Keywords in C
- C Operators
- Comments in C
- Escape Sequence in C
- Escape Sequence in C
- Constants in C
- C - Storage Classes
- C - Decision Making
- Switch statement in C
- C Loops
- Loop Control Statements
- Type Casting in C
- functions in C
- call by value Or call by reference
- Recursion in C
- Storage Classes in C
- Array
- String
- Pointer
- Pointer And Array
- Pointer with function
- Structure
- Union
- File Handling
- Preprocessor Directives
Important Links
What is C?
By definition, C is a structured or procedural programming language. C is a structured programming language developed by Dennis Ritchie in 1973 at Bell Laboratories of AT&T (American Telephone & Telegraph) in USA. It was invented for implementing UNIX operating system.
c is now one of the most widely used & known programming language.
OS and other programming language have been written using c language.
Dennis Ritchie was known as the father of C language.
Procedural – it means a C program is a set of functions. Each function performs a specific task. In the C program, functions are called in sequence to make the program works as designed.
A procedural language is a type of computer programming language that specifies a series of well-structured steps and procedures within its programming context to compose a program. It contains a systematic order of statements, functions and commands to complete a computational task or program.
Procedural language is also known as imperative language.
The procedural language segregates (to separate or set) a program within variables, functions, statements and conditional operators. Procedures or functions are implemented on the data and variables to perform a task. These procedures can be called/invoked anywhere between the program hierarchy, and by other procedures as well. A program written in procedural language contains one or more procedures.
The UNIX operating system, the C compiler, and essentially all UNIX application programs have been written in C. The UNIX OS was totally written in C.
Why use C?
Some examples of the use of C might be −
Operating Systems
Language Compilers
Assemblers
Text Editors
Print Spoolers
Network Drivers
Modern Programs
Databases
Language Interpreters
Utilities
C Programs :-
C programs should be written into one or more text files with extension ".c"; for example, hello.c
C Language :-
The C Language is developed for creating system applications that direct interacts to the hardware devices such as drivers, kernals etc.
C programming is considered as the base for other programming languages, that is why it is known as mother language.
It can be defined by following ways:Mother language
System programming language
Procedure-oriented programming language
Structured programming language
Mid level programming language
It can be defined by following ways:
Mother language :-
C language is considered as the mother language of all the modern languages because most of the compilers, JVMs, Kernals etc. are written in C language and most of languages follows c syntax e.g. C++, Java etc.
C as a system programming language
A system programming language is used to create system softwares. C language is a system programming language because it can be used to do low level programming (e.g. driver and kernel). It is generally used to create hardware devices, OS, drivers, kernels etc. For example, linux kernel is written in C.
C as a procedural language
A procedure 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.
A procedural language breaks the program into functions, data structures etc.
C is a procedural language. In C, variables and function prototypes must be declared before being used.
A procedural language breaks the program into functions, data structures etc.
C is a procedural language. In C, variables and function prototypes must be declared before being used.
C as a mid-level programming language
C is considered as a middle level language because it supports the feature of both low-level and high level language.
Low level language is specific to one machine i.e. machine dependent. It is machine dependent, fast to run. But it is not easy to understand.
High Level language is not specific to one machine i.e. machine independent. It is easy to understand.
program :-
A program is a set of instruction. that are arranged in a sequence that guides the computer to solve a problem.
programming :-
The process of writing a program is called programming. programming is a critical step in data processing.