What is a Program?
A Precise sequence of steps to solve a particular
problem.
Precise=exact
Sequence= what should be first, what should be second,
and so on..
And there should be any problem to solve.
way2ITech
Application And Project
Application : Collection of Programs. E.g. Collection
of 4 programs of +, -, *, / is an application named
calculator
Project : Collection of Applications.
E.g.. Operating System, Word processors
way2ITech
What is a programming Language?
A vocabulary and set of grammatical rules for
instructing a Computer to perform specific tasks.
Each language has a unique set of keywords (words
that it understands) and a special syntax for
organizing program instructions.
way2ITech
Ask 6 different Computer
Scientists, get 6 different answers!
formal notation for computations
tool for writing programs
means of communicating between programmers
notation for algorithms
tool for experimenting with solutions to problems
means for controlling computerized devices
way2ITech
Diff. B/w HLL,LLL,MLLHLL : High Level Language
User Friendly
Easy understandable to user
Computer details are hidden from user
E.g. COBOL, FORTAN, PASCAL, ADA
LLL : Low Level Language (Machine Language)
Composed of 0’s and 1’s only
Computer details are there
Not user friendly
way2ITech
Totally Machine Understandable
MLL : Middle Level Language
• Mixture of both HLL and LLL
• User Friendly also
• E.g.. C language.
way2ITech
Introduction to C Language
C is a programming language.
It was developed at AT & T’s Bell Laboratories of USA
in 1972.
It was designed and written by a man named Dennis
Ritchie.
way2ITech
Dennis
Ritchie
Evolved from B, which evolved from BCPL
Designed for systems programming
Operating systems
Utility programs
Compilers
Filters
way2ITech
Reasons to learn C
Main reason is its simplicity reliability, and its easy to
use and easy to learn
Major part of OS like windows, Unix still written in C
C is used in Micro Computers used in consumer
devices like Microwaves, AC’s, Refrigerators etc.
To learn more advanced language like Java, C is must
way2ITech
way2ITech
Some Definitions
Syntax(form):-The syntax of a language describes
the possible combinations of symbols that form a
correct program.
 IDE:- It is a screen display with pull down menus.
We use menu selections to invoke all the operations
necessary to develop our program. (Integrated
Development Environment)
way2ITech
Compiler:- It is the part of IDE, that translates our
source file into machine language.
Keyword:- Keywords are the words whose meaning
has already been explained to the C compiler
way2ITech
Compilers And Interpreters
Compiler
Converts whole program in equivalent Machine
language in one go
Less time used during compilation
Intermediate file is made
More Running Time
Interpreter
• Converts program line by line
• More time during conversion
• Intermediate file not made
• Less Running Time
way2ITech
way2ITech
way2ITech
Introduction to c_language

Introduction to c_language

  • 2.
    What is aProgram? A Precise sequence of steps to solve a particular problem. Precise=exact Sequence= what should be first, what should be second, and so on.. And there should be any problem to solve. way2ITech
  • 3.
    Application And Project Application: Collection of Programs. E.g. Collection of 4 programs of +, -, *, / is an application named calculator Project : Collection of Applications. E.g.. Operating System, Word processors way2ITech
  • 4.
    What is aprogramming Language? A vocabulary and set of grammatical rules for instructing a Computer to perform specific tasks. Each language has a unique set of keywords (words that it understands) and a special syntax for organizing program instructions. way2ITech
  • 5.
    Ask 6 differentComputer Scientists, get 6 different answers! formal notation for computations tool for writing programs means of communicating between programmers notation for algorithms tool for experimenting with solutions to problems means for controlling computerized devices way2ITech
  • 6.
    Diff. B/w HLL,LLL,MLLHLL: High Level Language User Friendly Easy understandable to user Computer details are hidden from user E.g. COBOL, FORTAN, PASCAL, ADA LLL : Low Level Language (Machine Language) Composed of 0’s and 1’s only Computer details are there Not user friendly way2ITech
  • 7.
    Totally Machine Understandable MLL: Middle Level Language • Mixture of both HLL and LLL • User Friendly also • E.g.. C language. way2ITech
  • 8.
    Introduction to CLanguage C is a programming language. It was developed at AT & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. way2ITech Dennis Ritchie
  • 9.
    Evolved from B,which evolved from BCPL Designed for systems programming Operating systems Utility programs Compilers Filters way2ITech
  • 10.
    Reasons to learnC Main reason is its simplicity reliability, and its easy to use and easy to learn Major part of OS like windows, Unix still written in C C is used in Micro Computers used in consumer devices like Microwaves, AC’s, Refrigerators etc. To learn more advanced language like Java, C is must way2ITech
  • 11.
  • 12.
    Some Definitions Syntax(form):-The syntaxof a language describes the possible combinations of symbols that form a correct program.  IDE:- It is a screen display with pull down menus. We use menu selections to invoke all the operations necessary to develop our program. (Integrated Development Environment) way2ITech
  • 13.
    Compiler:- It isthe part of IDE, that translates our source file into machine language. Keyword:- Keywords are the words whose meaning has already been explained to the C compiler way2ITech
  • 14.
    Compilers And Interpreters Compiler Convertswhole program in equivalent Machine language in one go Less time used during compilation Intermediate file is made More Running Time Interpreter • Converts program line by line • More time during conversion • Intermediate file not made • Less Running Time way2ITech
  • 15.
  • 16.