KEMBAR78
Introduction to c programming language | PPTX
An Introduction to C
Programming Language
Intro
 C is the famous programming language
designed to develop system application
program.
Intro
 It is known as the starting of every
programming language all the basics
of a program language starts from C
language.
 C is known as general purpose
procedural programming language.
History
 Developed by M. Dennis Ritchie at
the Bell laboratories in the year of
1972.
 C is known as high level language
because it has the power of a lower
level language and easy syntax like
high level language.
Why C used as a professional
programming language?
 Easy to learn
 It’s a structured programming language
Why C used as a professional
programming language?
 Can handle low level programs
 Compiled code can be used in different
computers
Features of C
 C is a robust language
 C is a highly portable language means
once compiled; the code can be run in any
computer.
What is Compiler?
 Compiler is a computer program that
transforms the human written language
into machine level language.
What is Compiler?
 In general words computer takes the code
written by you and converts it into binary
code.
Structure & Syntax of a C
Program
 #include<stdio.h>
#include<conio.h>
void Main()
clrscr();
{
Printf(“my first C program”);
}
Description of Code:-
 #- Prerocessor of program
 Include-Include is a keyword
Description of Code:-
 Stdio.h-Standard input/output header file
 Conio.h-Console input/output header file
Description of Code:-
 Void-is a keyword that collects the
garbage value
 Main()- main() identifies starting of the
program execution
Description of Code:-
 Clrscr()- To clear the console screen
 {, }-Group all statements together
 Printf()-It is a function to print the output
on screen.
C Data types
 Data type of C language mostly divided
into 5 major types
 int, char, float, double, void
C Data types
int char float
void double
C Data types
 Int –Used to identify an integer value
 Char- Used to identify a character
 Float- Used to identify floating point type
 Double- Used to identify floating point type
 Void- denotes to type with garbage value
Variable:-
 Variable is a stored data memory allocated
to use it in future and we can change the
value too.
Variable:-
 Syntax- type variable name;
 Ex- int a, b, c;
Explanation of Example
 Int-Data type
 A, b, c variables
Explanation of Example
 Int-Data type
 A, b, c variables
 ;-Identifies the end of statement.
End of Slide
 This is a simple introduction to C basic that
will be elaborated in further classes. If you
want to be one of the programming
professional then please visit our website for
further details about C demo classes and
new session.
Introduction to c programming language

Introduction to c programming language

  • 1.
    An Introduction toC Programming Language
  • 2.
    Intro  C isthe famous programming language designed to develop system application program.
  • 3.
    Intro  It isknown as the starting of every programming language all the basics of a program language starts from C language.  C is known as general purpose procedural programming language.
  • 4.
    History  Developed byM. Dennis Ritchie at the Bell laboratories in the year of 1972.  C is known as high level language because it has the power of a lower level language and easy syntax like high level language.
  • 5.
    Why C usedas a professional programming language?  Easy to learn  It’s a structured programming language
  • 6.
    Why C usedas a professional programming language?  Can handle low level programs  Compiled code can be used in different computers
  • 7.
    Features of C C is a robust language  C is a highly portable language means once compiled; the code can be run in any computer.
  • 8.
    What is Compiler? Compiler is a computer program that transforms the human written language into machine level language.
  • 9.
    What is Compiler? In general words computer takes the code written by you and converts it into binary code.
  • 10.
    Structure & Syntaxof a C Program  #include<stdio.h> #include<conio.h> void Main() clrscr(); { Printf(“my first C program”); }
  • 11.
    Description of Code:- #- Prerocessor of program  Include-Include is a keyword
  • 12.
    Description of Code:- Stdio.h-Standard input/output header file  Conio.h-Console input/output header file
  • 13.
    Description of Code:- Void-is a keyword that collects the garbage value  Main()- main() identifies starting of the program execution
  • 14.
    Description of Code:- Clrscr()- To clear the console screen  {, }-Group all statements together  Printf()-It is a function to print the output on screen.
  • 15.
    C Data types Data type of C language mostly divided into 5 major types  int, char, float, double, void
  • 16.
    C Data types intchar float void double
  • 17.
    C Data types Int –Used to identify an integer value  Char- Used to identify a character  Float- Used to identify floating point type  Double- Used to identify floating point type  Void- denotes to type with garbage value
  • 18.
    Variable:-  Variable isa stored data memory allocated to use it in future and we can change the value too.
  • 19.
    Variable:-  Syntax- typevariable name;  Ex- int a, b, c;
  • 20.
    Explanation of Example Int-Data type  A, b, c variables
  • 21.
    Explanation of Example Int-Data type  A, b, c variables  ;-Identifies the end of statement.
  • 22.
    End of Slide This is a simple introduction to C basic that will be elaborated in further classes. If you want to be one of the programming professional then please visit our website for further details about C demo classes and new session.