Basics of C Language
Basics of C Language
Made by:-
Monika Mahendru
CONTENTS
• Introduction
• History
• What c is?
• Steps required
• Header file
INTRODUCTION
• COMPUTER
• It is comprise of:
1- Hardware
2-Software
I. System Software:- without this the system does not run such as
Operating system
I. Application Software :-It is used for the extra activity such as paint,
media player etc
History of ‘C’
• Before C language evolved there is BCPL(basic combined
programming language)known as B
• The name of “C” given due to its parents language . Its
parents language is “B”.
• C developed in 1972 by DENNIS RICHIE,BRIAN KERNIGHAN . It
is developed in delta T and T.
• it is developed in BELL LABS which is a branch of delT and T
company.
• delta T and T is a software and telecommunication company
of AMERICA
What c is?
• With the help of ‘c’ we can able to develop
system software & application software , so it
is most versatile language. EG:-Windows,
Linux (system software), Java , C++
(application software).
• Due to this ‘C’ is known as the mother of all
language .
STEPS REQUIRED WHILE DEVELOPING
A PROGRAM:-
Write the source code.
Compilation of source code.
Generation of machine code.
Execution of machine code.
• Blue window is known as IDE ( Integrated
development environment)
• Notepad is also known as EDITOR
What is header file?
• It is the shortcut for performing some operation
• Any file in ‘c’ which ends with the extension .h is
known as header file
• These header file contains a huge collection of
pre-coded small programs known as Functions
EG:-math.h , graphics.h
• If a programmer wants to make use of any of the
pre-defined functions than he must attach the
required header file in his program
• Console is defined as the black window on
which output of the coding which are write on
IDE has seen
• Stdio.h is used for writing and reading
• Conio.h is used for change in characteristics of
the output
• Any statement which is start from # is known
as pre-processor directive
• In printf f stands for formating
• In c if after any word () parenthesis is shown it
means that word is known as functions
• Any thing repeat within the’’ is known as
characteristic constant (is seen in PINK colour)
• Any thing repeat within”” is known as string
constant (is seen in RED colour)