Introduction to c_language
Transcript of Introduction to c_language
What is a Program?
A Precise sequence of steps to solve a particular problem.
Precise=exactSequence= what should be first, what should
be second, and so on..And there should be any problem to solve.
way2ITech
Application And ProjectApplication : 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 programsmeans of communicating between
programmersnotation for algorithmstool for experimenting with solutions to
problemsmeans for controlling computerized devices
way2ITech
Diff. B/w HLL,LLL,MLLHLL : High Level Language
User FriendlyEasy understandable to userComputer details are hidden from userE.g. COBOL, FORTAN, PASCAL, ADA
LLL : Low Level Language (Machine Language)Composed of 0’s and 1’s onlyComputer details are thereNot 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 BCPLDesigned for systems programming
Operating systemsUtility programsCompilersFilters
way2ITech
Reasons to learn C Main reason is its simplicity reliability, and
its easy to use and easy to learnMajor part of OS like windows, Unix still
written in CC 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
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 InterpretersCompiler
Converts whole program in equivalent Machine language in one go
Less time used during compilationIntermediate file is madeMore Running Time
Interpreter • Converts program line by line• More time during conversion• Intermediate file not made• Less Running Time
way2ITech