Arora Educator
C Programming
                            Arora Educator
           C Programming
✓ Programming Generations
✓ OOPS Languages
✓ C Basics
✓ C Compilers
✓ C Tokens
✓ C Format Specifier
✓ C Comments
                    Programming Language
GENERATIO LANGUAGES                                Arora Educator
NS
1 : GENERATION   MACHINE LANGUAGE (Binary
LANGUAGE         Language)
2 : GENERATION   ASSEMBLY LANGUAGE
LANGUAGE         (Mnemonics)
3 : GENERATION   C, C++, JAVA, FORTRON, COBOL,
LANGUAGE         BASIC, PASCAL (Software)
4 : GENERATION   Perl, Python, Ruby, SQL, MatLab
LANGUAGE         (Database Language)
5 : GENERATION   Mercury, OPS5, LISP and Prolog
LANGUAGE         (AI/Robots/Machine)
Object-oriented Programming Language :
✓ Simula                              Arora Educator
✓ Smalltalk
✓ Java
✓ JavaScript
✓ Python
✓ C++
✓ Visual Basic .NET
✓ Ruby
✓ Scala
✓ PHP
                        Arora Educator
C Programming
       In 1972, a great
       computer scientist
       Dennis Ritchie created a
       programming language
       called ‘C’ at the Bell
       Laboratories
                           Arora Educator
C Programming
 ALGOL = Algorithmic Language
 BCPL = Basic Combined Programming
 Language
 K&R = after the authors, Brian Kernighan
 and Dennis Ritchie
✓ Designed By               Arora Educator
Dennis Ritchie
✓ Created Year
1972
✓ Created at
Bell Laboratories
✓ Compiled or Interpreted
Compiled
✓ First OS Created with this language Arora Educator
Unix
✓ C is a successor of
B Language
✓ C language was formalized by
ANSI
✓ C programming also called
ANSI C
✓ C was widely used in               Arora Educator
Embedded Systems/IOT Application
✓ C used in making which browser
Google Chromium
✓ C used in making which database
MySQL
✓ C programming is structured or not
Yes, structured
✓ C is Low or High level             Arora Educator
High Level Language/Middle Level
✓ C is Case Sensitive or not
Yes. It is Case Sensitive
✓ C is platform dependent or independent
Platform Independent
✓ How many Keywords
32 Keywords
✓ Compilers in C Language   Arora Educator
Turbo C
Notepad++
Borland C++
Sublime Text
✓ C Programming = Steps for Execution   Arora Educator
1) Compilation
2) Linking
✓ C Programming = used to write     Arora Educator
1)   Compilers & Interpreters
2)   JVM (Java Virtual Machine)
3)   Kernels
4)   Databases
5)   OS = Symbian, Apple, Windows
✓ Before write C Program = you        Arora Educator
  need software
1) Code Editor = Netbeans, Sublime,
   Microsoft Visual Studio..etc
2) Compiler =
✓ Tokens in C programming                    Arora Educator
✓ Smallest individual unit in a programme.
✓ C support following tokens –
1) Identifiers = User defined names
2) Keywords = Reserved Words
3) Constants = Not Change
4) Strings = Sequence of Characters
5) Operators = Act on operands
6) Special Symbol = # = Preprocessor
✓ Format Specifiers in C   Arora Educator
%c = Character
%d = Signed Integer
%f = Float Values
%i = Unsigned Integer
%lf = Double
%p = Pointer
%s = String
%n = Prints Nothing
%% = Prints % character
✓ Comments in C language   Arora Educator