SlideShare a Scribd company logo
5
Most read
11
Most read
12
Most read
C Language
Introduction
 C is developed by Dennis Ritchie at AT&T Bell Labs, the USA
between 1969 and 1973.
 In 1988, the American National Standards Institute (ANSI) has
formalized the C language.
 C was invented to write UNIX operating system.
 C is a successor of 'Basic Combined Programming Language'
(BCPL) called B language.
 Linux OS, PHP, and MySQL are written in C.
 C has been written in assembly language.
Program Structure
#include<stdio.h>
#include<conio.h>
void main()
{
// (for comments)
-- ( for other statements)
}
Features of C Language
 C is a robust language with a rich set of built-in functions
and operators.
 Programs written in C are efficient and fast.
 C is highly portable, programs once written in C can be run
on other machines with minor or no modification.
 C is basically a collection of C library functions, we can
also create our own function and add it to the C library.
 C is easily extensible.
Advantages of C Language
 C is the building block for many other programming languages.
 Programs written in C are highly portable.
 Several standard functions are there (like in-built) that can be
used to develop programs.
 C programs are basically collections of C library functions, and
it's also easy to add own functions to the C library.
 The modular structure makes code debugging, maintenance and
testing easier.
 Disadvantages of C
Disadvantages of C Language
 C does not provide Object Oriented Programming
(OOP) concepts.
 There are no concepts of Namespace in C.
 C does not provide binding or wrapping up of
data in a single unit.
 C does not provide Constructor and Destructor.
History of C Language
 C programming language was developed to overcome the
difficulties found in older programming languages such as BCPL,
BASIC, B etc.
 C is imperative language and designed to compile in a relatively
straightforward manner which provides low-level access to the
memory. With the gradual increase in the popularity of the
program, the language and its compiler have become available
on a wide range of platforms from embedded microcontrollers to
supercomputers.
 With the introduction of K&R C language (which is a new edition
of C published in 1978 by Brian Kernighan and Denis Ritchie),
several features have been included in C language.
History of C Language
 Some of these features are:
1. Standard I/O (Input/Output) Library
2. long int - data type
3. unsigned int - data type
4. Compound assignment operators
 During the late 1980's, C was started to use for a wide
variety of mainframe computers, micro and mini
computers which began to get popular. Gradually C got
its superset - i.e. C++ which has added features, but its
developed from C with all its initial concepts.
Programs of C
#include<stdio.h>
#include<conio.h>
int main()
{
printf("Hello, World!n");
getch(); //Use to get one character input
from user, and it will not be printed on screen.
return 0;
}
Output of Program of C
Program:
 #include<stdio.h>
void main()
{
int a,b,c;
printf("Please enter any two numbers: n");
scanf("%d %d", &a, &b); c = a + b;
printf("The addition of two number is: %d", c);
}
Output:
 Please enter any two numbers:
12
3
The addition of two number is:15
Note: The above program scanf() is used to take input from the user, and
respectively printf() is used to display output result on the screen.
Various Parts of C
 /* Comments */ Comments are a way of explaining what
makes a program. Comments are ignored by the compiler
and used by others to understand the code.
Or
This is a comment block, which is ignored by the compiler.
Comment can be used anywhere in the program to add info
about program or code block, which will be helpful for
developers to easily understand the existing code in the
future.
 #include<stdio.h> stdio is standard for input / output,
this allows us to use some commands which includes a
file called stdio.h. Or
This is a preprocessor command. that notify the
compiler to include the header file stdio.h in the
program before compiling the source-code.
 int/void main() int/void is a return value, which will
be explained in a while.
 Braces Two curly brackets "{...}" are used to group all
statements together.
Or
Curly braces which shows how much the main()
function has its scope.
 printf() It is a function in C, which prints text on the
screen. or
This is another pre-defined function of C which is used to
be displayed text string in the screen.
 main() The main() is the main function where program
execution begins. Every C program must contain only
one main function. or
This is the main function, which is the default entry point
for every C program and the void in front of it indicates
that it does not return a value.
 return 0 At the end of the main function returns value 0.
Format Specifiers
 Format specifiers can be defined as the operators which
are used in association with printf() function for printing
the data that is referred by any object or any variable.
 When a value is stored in a particular variable then you
cannot print the value stored in the variable
straightforwardly without using the format specifiers.
 You can retrieve the data that are stored in the variables
and can print them onto the console screen by
implementing these format specifiers in a printf()
function.
 Format specifiers start with a percentage % operator and followed by
a special character for identifying the type of the data.
 There are mostly 6 types of format specifiers that are available in C.
Thank You

More Related Content

PPTX
C language
PPTX
C PROGRAMMING LANGUAGE.pptx
PDF
C Language
PPTX
Introduction to c programming language
PPTX
C Programming Language Tutorial for beginners - JavaTpoint
PPSX
Programming in c
PDF
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
PPTX
C language
C PROGRAMMING LANGUAGE.pptx
C Language
Introduction to c programming language
C Programming Language Tutorial for beginners - JavaTpoint
Programming in c
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf

What's hot (20)

PPTX
Function C programming
PPTX
1. importance of c
PPT
C PROGRAMMING
PPTX
Decision making statements in C programming
PPTX
File in C language
PPTX
User defined functions in C
PDF
Function in C
PPT
FUNCTIONS IN c++ PPT
PPT
C++ Overview
PPTX
C Tokens
PPTX
Functions in c language
PPTX
Types of loops in c language
PPT
Structure of a C program
PPTX
PPTX
C programming language tutorial
PPTX
Branching statements
PPTX
Java program structure
PPT
cs8251 unit 1 ppt
Function C programming
1. importance of c
C PROGRAMMING
Decision making statements in C programming
File in C language
User defined functions in C
Function in C
FUNCTIONS IN c++ PPT
C++ Overview
C Tokens
Functions in c language
Types of loops in c language
Structure of a C program
C programming language tutorial
Branching statements
Java program structure
cs8251 unit 1 ppt
Ad

Similar to C language (20)

PPT
The smartpath information systems c pro
PPT
1. over view and history of c
PPTX
Unit No 2.pptx Basic s of C Programming
PPTX
Introduction to C Unit 1
PDF
Basic Information About C language PDF
PPTX
C programming
PPTX
PROGRAMMING IN C - SARASWATHI RAMALINGAM
PDF
C som-programmeringssprog-bt
PPTX
Computer Programming In C - Variables, Constants & Data Types
DOC
1. introduction to computer
DOCX
Report on c and c++
PPTX
C lang7age programming powerpoint presentation
PDF
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
PPTX
C programming
PPTX
Introduction to C Programming
PPTX
C Language ppt create by Anand & Sager.pptx
PPTX
C programming tutorial for Beginner
PDF
Library management system
PPTX
C introduction by thooyavan
PPTX
Introduction to C programming
The smartpath information systems c pro
1. over view and history of c
Unit No 2.pptx Basic s of C Programming
Introduction to C Unit 1
Basic Information About C language PDF
C programming
PROGRAMMING IN C - SARASWATHI RAMALINGAM
C som-programmeringssprog-bt
Computer Programming In C - Variables, Constants & Data Types
1. introduction to computer
Report on c and c++
C lang7age programming powerpoint presentation
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming
Introduction to C Programming
C Language ppt create by Anand & Sager.pptx
C programming tutorial for Beginner
Library management system
C introduction by thooyavan
Introduction to C programming
Ad

More from marar hina (10)

PPTX
Operating system
PPTX
Operating system
PPTX
C language header files
PPTX
C language Processors
PPTX
C language variables
PPTX
C language data types
PPTX
C language operators
PPTX
C language (more)
PPTX
Attendence system
PPTX
Classification of human faces and non faces using machine learning techniques
Operating system
Operating system
C language header files
C language Processors
C language variables
C language data types
C language operators
C language (more)
Attendence system
Classification of human faces and non faces using machine learning techniques

Recently uploaded (20)

PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Module 8- Technological and Communication Skills.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Software Engineering and software moduleing
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PDF
Soil Improvement Techniques Note - Rabbi
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Abrasive, erosive and cavitation wear.pdf
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Module 8- Technological and Communication Skills.pptx
Safety Seminar civil to be ensured for safe working.
737-MAX_SRG.pdf student reference guides
Software Engineering and software moduleing
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Visual Aids for Exploratory Data Analysis.pdf
Fundamentals of Mechanical Engineering.pptx
Exploratory_Data_Analysis_Fundamentals.pdf
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
distributed database system" (DDBS) is often used to refer to both the distri...
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
Soil Improvement Techniques Note - Rabbi

C language

  • 2. Introduction  C is developed by Dennis Ritchie at AT&T Bell Labs, the USA between 1969 and 1973.  In 1988, the American National Standards Institute (ANSI) has formalized the C language.  C was invented to write UNIX operating system.  C is a successor of 'Basic Combined Programming Language' (BCPL) called B language.  Linux OS, PHP, and MySQL are written in C.  C has been written in assembly language.
  • 4. Features of C Language  C is a robust language with a rich set of built-in functions and operators.  Programs written in C are efficient and fast.  C is highly portable, programs once written in C can be run on other machines with minor or no modification.  C is basically a collection of C library functions, we can also create our own function and add it to the C library.  C is easily extensible.
  • 5. Advantages of C Language  C is the building block for many other programming languages.  Programs written in C are highly portable.  Several standard functions are there (like in-built) that can be used to develop programs.  C programs are basically collections of C library functions, and it's also easy to add own functions to the C library.  The modular structure makes code debugging, maintenance and testing easier.  Disadvantages of C
  • 6. Disadvantages of C Language  C does not provide Object Oriented Programming (OOP) concepts.  There are no concepts of Namespace in C.  C does not provide binding or wrapping up of data in a single unit.  C does not provide Constructor and Destructor.
  • 7. History of C Language  C programming language was developed to overcome the difficulties found in older programming languages such as BCPL, BASIC, B etc.  C is imperative language and designed to compile in a relatively straightforward manner which provides low-level access to the memory. With the gradual increase in the popularity of the program, the language and its compiler have become available on a wide range of platforms from embedded microcontrollers to supercomputers.  With the introduction of K&R C language (which is a new edition of C published in 1978 by Brian Kernighan and Denis Ritchie), several features have been included in C language.
  • 8. History of C Language  Some of these features are: 1. Standard I/O (Input/Output) Library 2. long int - data type 3. unsigned int - data type 4. Compound assignment operators  During the late 1980's, C was started to use for a wide variety of mainframe computers, micro and mini computers which began to get popular. Gradually C got its superset - i.e. C++ which has added features, but its developed from C with all its initial concepts.
  • 9. Programs of C #include<stdio.h> #include<conio.h> int main() { printf("Hello, World!n"); getch(); //Use to get one character input from user, and it will not be printed on screen. return 0; }
  • 11. Program:  #include<stdio.h> void main() { int a,b,c; printf("Please enter any two numbers: n"); scanf("%d %d", &a, &b); c = a + b; printf("The addition of two number is: %d", c); } Output:  Please enter any two numbers: 12 3 The addition of two number is:15 Note: The above program scanf() is used to take input from the user, and respectively printf() is used to display output result on the screen.
  • 12. Various Parts of C  /* Comments */ Comments are a way of explaining what makes a program. Comments are ignored by the compiler and used by others to understand the code. Or This is a comment block, which is ignored by the compiler. Comment can be used anywhere in the program to add info about program or code block, which will be helpful for developers to easily understand the existing code in the future.
  • 13.  #include<stdio.h> stdio is standard for input / output, this allows us to use some commands which includes a file called stdio.h. Or This is a preprocessor command. that notify the compiler to include the header file stdio.h in the program before compiling the source-code.  int/void main() int/void is a return value, which will be explained in a while.  Braces Two curly brackets "{...}" are used to group all statements together. Or Curly braces which shows how much the main() function has its scope.
  • 14.  printf() It is a function in C, which prints text on the screen. or This is another pre-defined function of C which is used to be displayed text string in the screen.  main() The main() is the main function where program execution begins. Every C program must contain only one main function. or This is the main function, which is the default entry point for every C program and the void in front of it indicates that it does not return a value.  return 0 At the end of the main function returns value 0.
  • 15. Format Specifiers  Format specifiers can be defined as the operators which are used in association with printf() function for printing the data that is referred by any object or any variable.  When a value is stored in a particular variable then you cannot print the value stored in the variable straightforwardly without using the format specifiers.  You can retrieve the data that are stored in the variables and can print them onto the console screen by implementing these format specifiers in a printf() function.
  • 16.  Format specifiers start with a percentage % operator and followed by a special character for identifying the type of the data.  There are mostly 6 types of format specifiers that are available in C.