PROGRAMMING USING C
LANGUAGE
Developed by Dennis Ritchie.
Considered as mother language because most of the compilers, JVMs, kernels are written in C language.
Considered as system oriented programming language because it is used to create system software; can
be used to do low level programming.
Considered as a procedural programming language because it breaks the programs into functions i.e.
specifies series of steps for a program to solve the problem.
Considered as a structure oriented programming language because it breaks the program into blocks; it
is the subset of procedural programming language.
Considered as mid-level programming language because it supports the feature of both low-level and
high-level programming language.
QUESTION
What is the diff between procedural programming language and structure oriented programming
language because both of them break the program into parts.
BASIC PROGRAM
1. #include <stdio.h>
2. int main() {
3. printf("Hello, World!\n");
4. return 0;
5. }
main() is a predefined function. Every program has a predefined function and under ever pre defined
function the program consists of user defined functions.
A variable is a name given the a memory space in which the input get saved.
A driver is a small set of program used only for a specific part of the computer. E.g: the camera of the
mobile phone has its own set of program which is specifically built only to run the camera itself. (need
further explanation and also need to know about kernels)
Low level language is machine dependent i.e. a program that runs on a specific computer, that program
cannot run in any other computer. It is specifically made for only that computer.
High level language is machine independent i.e. any program that runs on a computer will also run in any
other computer.