SlideShare a Scribd company logo
INTRODUCTION TO C
PROGRAMMING
HISTORY OF C LANGUAGE
LATE 60’s:MIT,GE and Bell labs partnered to
build MULTICS create “B” Language
EARLY 70’s:From The “B” Language, Dennis
Ritchie developed “C”
Later Dennis Ritchie and Brian Kernighan
together published “The white book”
Middle Level Language ?
. C Programming bridges gap between traditional
Machine Understandable Machine Level language and
more conventional High level languages. User can Use
C Language to do system programming for writing
operating system as well as application programming.
Intro to cprogramming
Why “C”?
 Easy to learn
 Structured language
 It produces efficient programs.
 It can handle low-level activities.
 It can be compiled on a variety of computers.
Facts about C
 C was invented to write an operating system called UNIX.
 C is a successor of B language which was introduced around
1970
 The language was formalized in 1988 by the American National
Standard Institute (ANSI).
 By 1973 UNIX OS almost totally written in C.
 Today C is the most widely used System Programming Language.
 Most of the state of the art software have been implemented
using C
Ex:Google Chrome
Basic elements Of C Program
 Preprocessor Commands
 Functions
 Variables
 Statements & Expressions
 Comments
Let us look at a simple
program that would print
"Hello World"
HELLO WORLD
#include <stdio.h>
int main()
{
/* My first program */
printf("Hello, World! n");
return 0;
}
#include <stdio.h>
Preprocessor Commands
These commands tells the compiler to do pre
processing before doing actual compilation.
Like #include <stdio.h> is a preprocessor
command which tells a C compiler to include
stdio.h file before going to actual compilation
.
intmain()
Functions
Functions are main building blocks of any C Program.
Every C Program will have one or more functions and
there is one mandatory function which is called main(
) function. This function is prefixed with keyword int w
hich means this function returns an integer value whe
n it exits. This integer value is returned using return
statement
printf
Built in Functions
The C Programming language provides a set of built-in functions. In the above
example printf() Is a C built-in function which is used to print anything on the
screen.
Other built in Functions:
 scanf
 char *strcpy
 void* memcpy
Variables
They are used to hold numbers, strings and complex data
for manipulation
A variable is just a named area of storage that can hold a single value
(numeric or character). The C language demands that you declare the name of
each variable that you are going to use and its type, or class, before you
actually try to do anything with it.
The Programming language C has two main variable types
 Local Variables
 Global Variables
Comments
/*My First program */
They are used to give additional useful
information inside a C Program. All the
comments will be put inside /*...*/ as given in
the example above. A comment can span
through multiple lines.
Caution
There are certain Rules
 C is a case sensitive programming language. It means in C
printf and Printf will have different meanings
 C has a free-form line structure. End of each C statement must
be marked with a semicolon.
 White Spaces (ie.. tab space and space bar ) are ignored.
THE END
Slideshare.net
Profile : skashwin98

More Related Content

PPTX
Introduction to c programming language
PPTX
C programming presentation(final)
PPTX
Introduction to c programming
PPTX
C language
PPTX
1 introduction to c programming language
PPTX
C language
PPTX
Introduction to c programming
PPT
C Language
Introduction to c programming language
C programming presentation(final)
Introduction to c programming
C language
1 introduction to c programming language
C language
Introduction to c programming
C Language

What's hot (20)

PPTX
introduction to c language
PPT
C language introduction
PPT
Introduction to c_language
PPT
C PROGRAMMING
PPTX
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
PPTX
PPT
introduction to C programming (C)
PPT
Why C is Called Structured Programming Language
PPTX
Introduction of c programming
PPTX
Introduction to C Language
PPT
Brief introduction to the c programming language
DOCX
Fundamentals of programming and problem solving
PPT
Introduction to C Programming
PPTX
An Overview of Programming C
DOCX
Features of c language 1
PPSX
C programming basics
PPTX
PPTX
DOC
Basic c
introduction to c language
C language introduction
Introduction to c_language
C PROGRAMMING
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
introduction to C programming (C)
Why C is Called Structured Programming Language
Introduction of c programming
Introduction to C Language
Brief introduction to the c programming language
Fundamentals of programming and problem solving
Introduction to C Programming
An Overview of Programming C
Features of c language 1
C programming basics
Basic c
Ad

Viewers also liked (8)

PPSX
Functions in c
PDF
Introduction to go language programming
PPT
GO programming language
PDF
C standard library functions
PPTX
functions in C
PPTX
Unit1 principle of programming language
PPT
Basics of C programming
Functions in c
Introduction to go language programming
GO programming language
C standard library functions
functions in C
Unit1 principle of programming language
Basics of C programming
Ad

Similar to Intro to cprogramming (20)

PPTX
Unit-1_c.pptx you from the heart of the day revision
DOCX
C Unit 1 notes PREPARED BY MVB REDDY
PDF
Programming in c
PDF
Introduction of c language
PPTX
Introduction to c language
PDF
C lecture notes new
PPTX
C programming orientation
PPTX
Overview of c
PPTX
chapter 1.pptx
PPT
C_Intro.ppt
PPTX
Introduction to C programming
PPTX
Introduction to C Unit 1
PDF
Unit 2 introduction to c programming
PPTX
Introduction to C Programming
PPT
C language part 1
PPT
C language part 1
PPT
What is turbo c and how it works
PPT
Learn C Language
PPTX
Chapter 1 Introduction to C .pptx
PPT
ch_1welcome in the worldofcsbsnsbsnh.ppt
Unit-1_c.pptx you from the heart of the day revision
C Unit 1 notes PREPARED BY MVB REDDY
Programming in c
Introduction of c language
Introduction to c language
C lecture notes new
C programming orientation
Overview of c
chapter 1.pptx
C_Intro.ppt
Introduction to C programming
Introduction to C Unit 1
Unit 2 introduction to c programming
Introduction to C Programming
C language part 1
C language part 1
What is turbo c and how it works
Learn C Language
Chapter 1 Introduction to C .pptx
ch_1welcome in the worldofcsbsnsbsnh.ppt

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Machine Learning_overview_presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation theory and applications.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine Learning_overview_presentation.pptx
The AUB Centre for AI in Media Proposal.docx
Programs and apps: productivity, graphics, security and other tools
Review of recent advances in non-invasive hemoglobin estimation
NewMind AI Weekly Chronicles - August'25-Week II
Chapter 3 Spatial Domain Image Processing.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A Presentation on Artificial Intelligence
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Assigned Numbers - 2025 - Bluetooth® Document
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Building Integrated photovoltaic BIPV_UPV.pdf

Intro to cprogramming

  • 2. HISTORY OF C LANGUAGE LATE 60’s:MIT,GE and Bell labs partnered to build MULTICS create “B” Language EARLY 70’s:From The “B” Language, Dennis Ritchie developed “C” Later Dennis Ritchie and Brian Kernighan together published “The white book”
  • 3. Middle Level Language ? . C Programming bridges gap between traditional Machine Understandable Machine Level language and more conventional High level languages. User can Use C Language to do system programming for writing operating system as well as application programming.
  • 5. Why “C”?  Easy to learn  Structured language  It produces efficient programs.  It can handle low-level activities.  It can be compiled on a variety of computers.
  • 6. Facts about C  C was invented to write an operating system called UNIX.  C is a successor of B language which was introduced around 1970  The language was formalized in 1988 by the American National Standard Institute (ANSI).  By 1973 UNIX OS almost totally written in C.  Today C is the most widely used System Programming Language.  Most of the state of the art software have been implemented using C Ex:Google Chrome
  • 7. Basic elements Of C Program  Preprocessor Commands  Functions  Variables  Statements & Expressions  Comments
  • 8. Let us look at a simple program that would print "Hello World"
  • 9. HELLO WORLD #include <stdio.h> int main() { /* My first program */ printf("Hello, World! n"); return 0; }
  • 10. #include <stdio.h> Preprocessor Commands These commands tells the compiler to do pre processing before doing actual compilation. Like #include <stdio.h> is a preprocessor command which tells a C compiler to include stdio.h file before going to actual compilation .
  • 11. intmain() Functions Functions are main building blocks of any C Program. Every C Program will have one or more functions and there is one mandatory function which is called main( ) function. This function is prefixed with keyword int w hich means this function returns an integer value whe n it exits. This integer value is returned using return statement
  • 12. printf Built in Functions The C Programming language provides a set of built-in functions. In the above example printf() Is a C built-in function which is used to print anything on the screen. Other built in Functions:  scanf  char *strcpy  void* memcpy
  • 13. Variables They are used to hold numbers, strings and complex data for manipulation A variable is just a named area of storage that can hold a single value (numeric or character). The C language demands that you declare the name of each variable that you are going to use and its type, or class, before you actually try to do anything with it. The Programming language C has two main variable types  Local Variables  Global Variables
  • 14. Comments /*My First program */ They are used to give additional useful information inside a C Program. All the comments will be put inside /*...*/ as given in the example above. A comment can span through multiple lines.
  • 15. Caution There are certain Rules  C is a case sensitive programming language. It means in C printf and Printf will have different meanings  C has a free-form line structure. End of each C statement must be marked with a semicolon.  White Spaces (ie.. tab space and space bar ) are ignored.