SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
2/12/2010




                                                                  t
                                                                                                                                  y
                                                                            Keep your notebook with you.




                           C
                                                                   Write important point and questions that comes in your mind

                                                                        Solve Mind band exercise.

                                          Programming
                                                                                                                                  C
                                                                                                          Rewind when not clear

                                            Language
                                                                                 Ask Questions by call or SMS or by mail

                                   By:
                                                                   Keep Watching Keep Learning
                        Yogendra Pal
                 yogendra@learnbywatch.com
                                                                   THIS IS INTRODUCTION
                      Dedicated to My mother and Father




                                                                                                      2




                        Computer                                                         Computer…
• Electronic Device                                               • Two very important for a programmer
• Store, Manipulate and Transmit data.                              – Numeric
• Data can be                                                       – Character
    – Numeric                                                     • Scientific and Engineering Applications
    – Character (Name, Address etc.)                                – Numeric
    – Graphics data (Charts, Photographs, Videos)                 • Business applications
    – Sound (Music, Speech etc.)                                    – Numeric and Character


                                      3                                                               4




                          Memory                                                           Memory…
•   Every information is stored in binary code.                   • Bit is the smallest unit of information storage.
•   Binary code is the sequence of 0s and 1s.                     • Bit consists a single binary digit (0 or 1).
•   0 and 1 are called bits.                                      • We can interpreted 0 and 1 as:
•   0 represents OFF and 1 represents ON.                           – 0 : False : Off
•   8 bits makes 1 byte.                                            – 1 : True : On
             7    6       5       4       3      2        1   0



• Character takes one byte to store.
                                      5                                                               6




                                                                                                                                             1
2/12/2010




                     Memory…                                       Machine needs instructions
•
                                                                               o
    1 bit consists 0 or 1.
•
•
    8 bits makes a byte.
    210 (1024) byte make a Kilobyte or KB.
                                                             I
•   210 (1024) Kilobyte make a Megabyte or MB.
•   210 (1024) Megabyte make a Gigabyte or GB.
•   210 (1024) Gigabyte make a Terabyte or TB.
            Bit < Byte < KB < MB < GB < TB
                                                                                ć
                              7                                                          8




          Programming Language                                          Machine Language
• Machine Language                                          • Strings of numbers giving machine specific
• Assembly Language                                           instructions.
• High-Level Language                                       • Also known as Machine code.
                                                              Example:
                                                                 +1300042774
                                                                 +1400593419
                                                                 +1200274027




                              9                                                          10




             Machine Language…                                          Assembly Language
• Very Few programs are written in machine                  • English-like abbreviations representing
  language because:-                                          elementary computer operations.
    – It is very difficult to work with machine language.   • Simpler than machine language.
    – Program written for one type of computer will not          Example:
      run on other type of computer (Each type of                       LOAD BASEPAY
                                                                        ADD OVERPAY
      computer has it’s own instruction set).
                                                                        STORE GROSSPAY

                                                            • Translate in machine code before execute.
                                                            • Translation is done by assembler.
                             11                                                          12




                                                                                                                  2
2/12/2010




              High-level Languages                               High level languages…
• Codes similar to everyday English (Easy to            • The program written in high level language is
  understand).                                            known as source code or source program.
• Use mathematical notations.                           • The compiled source code results in machine-
• Example                                                 language.
  – grossPay = basePay + overTimePay
                                                        • Machine language code is also known as
• Translate in machine code before execute.
                                                          object code or object program.
• Translation is done by compiler or
  interpreter.

                              13                                                14




           Compiler vs. Interpreter                                       Program
• Interpreter reads the source code one line at a       • Using programming language we create
  time convert it into machine code.                      instructions or set of instructions.
• Compiler reads the entire program and                 • This set of instructions is also knows as
  converts it into machine code.                          computer program or software program or
• machine code is a code that the computer can            just program.
  run directly.                                         • Example programs or softwares:
• machine code also known as object code or               – Word processing program
  binary code.                                            – Computer Games or video games
                              15                                                16




                      History of C                             C: A Middle Level Language
• Evolved by Dennis Ritchie in 1970 at Bell             • Best elements of high level language and
  Telephone Laboratories from two previous                control and flexibility of assembly language.
  programming languages, BCPL and B.
                                                        • C allows the direct manipulation of bits, bytes
• Used to develop UNIX.                                   and addresses.
• Used to write modern operating systems.               • C has several built in data types.
• Hardware independent (portable).
                                                        • Permits type conversion.
• Standard created in 1989, updated in 1999.
                                                        • No run time error checking.
       BCPL                  B              C
    Martin Richards     Ken Thompson   Dennis Ritchie   • Well suited for system-level programming.
                              17                                                18




                                                                                                             3
2/12/2010




          The C Standard Library                                           C Standard Library…
• C programs consist of pieces/modules called                 • Avoid re-inventing the wheel
  functions.                                                      – If a premade function exists, generally best to use it
  – A programmer can create his own functions.                      rather than write your own
     • Advantage: the programmer knows exactly how it works       – Library functions carefully written, efficient, and
     • Disadvantage: time consuming                                 portable
  – Programmers will often use the C library
    functions.
     • Use these as building blocks

                               19                                                           20




     Other High-level Languages                                          Structured Programming
• Other high-level languages                                  • Disciplined approach to writing programs.
  – FORTRAN                                                   • Functions are the building blocks of programs.
     • Used for scientific and engineering applications
                                                              • Allow you to code separate tasks in a program,
  – COBOL
                                                                make your program modular.
     • Used to manipulate large amounts of data
  – Pascal                                                    • Clear, easy to test and debug and easy to
     • Intended for academic use                                modify.
                                                              • C is a structured programming language.

                               21                                                           22




             Library and Linking                                         Program Development
• Library : Collection of functions.                          • Edit        : Program is created in the editor and
                                                                              stored on disk.
• Linker : Combines the called function object                •   Preprocess: Preprocess program processes the code
  code with the code you written.                             •   Compile : Compiler creates object code and stores it
                                                                  on disk.
                                                              •   Link      : Linker links the object code with the
                                                                              libraries.
                                                              •   Load      : Loader loads program in memory.
                                                              •   Execute : CPU takes each insruction and executes it.

                               23                                                           24




                                                                                                                              4
2/12/2010




             Form of C program                                               Mind Bend
• The main() function must present in program.    • Write 4 different data types.
• Keywords can not used as a variable name or a   • What is meant by a computer program?
  function name.                                  • Differentiate bit & byte?
• Case sensitive language.                        • What is a machine language? How it is
                                                    different from High level language?
   – else  ELSE 
                                                  • What are the advantages of high level
• It may have many functions.                       language? Give some examples of high level
                                                    language.

                         25                                                              26




                                                                   To get complete benefit solve all the quiz on
                  Mind Bend                                                  www.learnbywatch.com


•   Differentiate Compiler and Interpreter.                         For any problem in this tutorial mail me at
                                                                          yogendra@learnbywatch.com
•   What is source program?                                                   with the subject “C”

•   What is object program?                                               For Other information mail at
•   Who develop the C language and where?                                   info@learnbywatch.com

•   Can we use uppercase in C program?
                                                      Keep Watching Keep Learning
•   Computer is an __________ device.
                                                      NEXT IS C BASICS
•   Binary code is the sequence of _ & _.
                         27




                                                                                                                          5

Mais conteúdo relacionado

Semelhante a Keep your notebook with you

Information and communication technology Textbook answers
Information and communication technology Textbook answersInformation and communication technology Textbook answers
Information and communication technology Textbook answersabdurrahman mafhoom
 
Capturing, writing and reading maths electronically
Capturing, writing and reading maths electronicallyCapturing, writing and reading maths electronically
Capturing, writing and reading maths electronicallyAbi James
 
Lesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLexume1
 
Abap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesAbap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesMilind Patil
 
PyData Texas 2015 Keynote
PyData Texas 2015 KeynotePyData Texas 2015 Keynote
PyData Texas 2015 KeynotePeter Wang
 
Information Processes and Technology Multimedia and Graphics
Information Processes and Technology Multimedia and GraphicsInformation Processes and Technology Multimedia and Graphics
Information Processes and Technology Multimedia and Graphicspezhappy99
 
Computer systems
Computer systemsComputer systems
Computer systemskmodasia
 
chapter01.ppt
chapter01.pptchapter01.ppt
chapter01.pptFiroza10
 
Acer ax1400 b3031 athl ii x2 220 desktop
Acer ax1400 b3031 athl ii x2 220 desktopAcer ax1400 b3031 athl ii x2 220 desktop
Acer ax1400 b3031 athl ii x2 220 desktopmarquina31
 
Digitizing a newspaper clippings collection: a case study in small-scale digi...
Digitizing a newspaper clippings collection: a case study in small-scale digi...Digitizing a newspaper clippings collection: a case study in small-scale digi...
Digitizing a newspaper clippings collection: a case study in small-scale digi...Molly Knapp
 
computer fundamentals.pptx
computer fundamentals.pptxcomputer fundamentals.pptx
computer fundamentals.pptxZaidKhan530164
 

Semelhante a Keep your notebook with you (20)

Information and communication technology Textbook answers
Information and communication technology Textbook answersInformation and communication technology Textbook answers
Information and communication technology Textbook answers
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
Capturing, writing and reading maths electronically
Capturing, writing and reading maths electronicallyCapturing, writing and reading maths electronically
Capturing, writing and reading maths electronically
 
Lesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squencesLesson4.2 u4 l1 binary squences
Lesson4.2 u4 l1 binary squences
 
Java basics
Java basicsJava basics
Java basics
 
Chtp401
Chtp401Chtp401
Chtp401
 
Abap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfilesAbap slide class4 unicode-plusfiles
Abap slide class4 unicode-plusfiles
 
TOPIC 2.pdf
TOPIC 2.pdfTOPIC 2.pdf
TOPIC 2.pdf
 
Using unicode with php
Using unicode with phpUsing unicode with php
Using unicode with php
 
PyData Texas 2015 Keynote
PyData Texas 2015 KeynotePyData Texas 2015 Keynote
PyData Texas 2015 Keynote
 
Information Processes and Technology Multimedia and Graphics
Information Processes and Technology Multimedia and GraphicsInformation Processes and Technology Multimedia and Graphics
Information Processes and Technology Multimedia and Graphics
 
Computer systems
Computer systemsComputer systems
Computer systems
 
PSPClass1.pptx
PSPClass1.pptxPSPClass1.pptx
PSPClass1.pptx
 
rainbow technology
rainbow technologyrainbow technology
rainbow technology
 
chapter01.ppt
chapter01.pptchapter01.ppt
chapter01.ppt
 
chapter01 (1).ppt
chapter01 (1).pptchapter01 (1).ppt
chapter01 (1).ppt
 
chapter01.ppt
chapter01.pptchapter01.ppt
chapter01.ppt
 
Acer ax1400 b3031 athl ii x2 220 desktop
Acer ax1400 b3031 athl ii x2 220 desktopAcer ax1400 b3031 athl ii x2 220 desktop
Acer ax1400 b3031 athl ii x2 220 desktop
 
Digitizing a newspaper clippings collection: a case study in small-scale digi...
Digitizing a newspaper clippings collection: a case study in small-scale digi...Digitizing a newspaper clippings collection: a case study in small-scale digi...
Digitizing a newspaper clippings collection: a case study in small-scale digi...
 
computer fundamentals.pptx
computer fundamentals.pptxcomputer fundamentals.pptx
computer fundamentals.pptx
 

Mais de Learn By Watch

Demodulation of fm pll detector
Demodulation of fm pll detectorDemodulation of fm pll detector
Demodulation of fm pll detectorLearn By Watch
 
Demodulation of fm slope and balanced slope detector
Demodulation of fm slope and balanced slope detectorDemodulation of fm slope and balanced slope detector
Demodulation of fm slope and balanced slope detectorLearn By Watch
 
In direct method of fm generation armstrong method
In direct method of fm generation armstrong methodIn direct method of fm generation armstrong method
In direct method of fm generation armstrong methodLearn By Watch
 
Direct method of fm generation hartley oscillator method
Direct method of fm generation hartley oscillator methodDirect method of fm generation hartley oscillator method
Direct method of fm generation hartley oscillator methodLearn By Watch
 
Spectrum and power of wbfm
Spectrum and power of wbfmSpectrum and power of wbfm
Spectrum and power of wbfmLearn By Watch
 
Narrow band frequency modulation nbfm
Narrow band frequency modulation nbfmNarrow band frequency modulation nbfm
Narrow band frequency modulation nbfmLearn By Watch
 
General expression of fm signal
General expression of fm signalGeneral expression of fm signal
General expression of fm signalLearn By Watch
 
Frequency division multiplexing
Frequency division multiplexingFrequency division multiplexing
Frequency division multiplexingLearn By Watch
 
Demodulation of ssb synchronous detector
Demodulation of ssb synchronous detectorDemodulation of ssb synchronous detector
Demodulation of ssb synchronous detectorLearn By Watch
 
Generarion of ssb phase discrimination method
Generarion of ssb phase discrimination methodGenerarion of ssb phase discrimination method
Generarion of ssb phase discrimination methodLearn By Watch
 
Generarion of ssb frequency discrimination method
Generarion of ssb frequency discrimination methodGenerarion of ssb frequency discrimination method
Generarion of ssb frequency discrimination methodLearn By Watch
 
Demodulation of dsb sc costas receiver
Demodulation of dsb sc costas receiverDemodulation of dsb sc costas receiver
Demodulation of dsb sc costas receiverLearn By Watch
 
Quadrature carrier multiplexing qam
Quadrature carrier multiplexing qamQuadrature carrier multiplexing qam
Quadrature carrier multiplexing qamLearn By Watch
 
Demodulation of am synchronous detector
Demodulation of am synchronous detectorDemodulation of am synchronous detector
Demodulation of am synchronous detectorLearn By Watch
 

Mais de Learn By Watch (20)

Tutorial 9 fm
Tutorial 9 fmTutorial 9 fm
Tutorial 9 fm
 
Phase modulation
Phase modulationPhase modulation
Phase modulation
 
Demodulation of fm pll detector
Demodulation of fm pll detectorDemodulation of fm pll detector
Demodulation of fm pll detector
 
Demodulation of fm slope and balanced slope detector
Demodulation of fm slope and balanced slope detectorDemodulation of fm slope and balanced slope detector
Demodulation of fm slope and balanced slope detector
 
In direct method of fm generation armstrong method
In direct method of fm generation armstrong methodIn direct method of fm generation armstrong method
In direct method of fm generation armstrong method
 
Direct method of fm generation hartley oscillator method
Direct method of fm generation hartley oscillator methodDirect method of fm generation hartley oscillator method
Direct method of fm generation hartley oscillator method
 
Carson's rule
Carson's ruleCarson's rule
Carson's rule
 
Spectrum and power of wbfm
Spectrum and power of wbfmSpectrum and power of wbfm
Spectrum and power of wbfm
 
Narrow band frequency modulation nbfm
Narrow band frequency modulation nbfmNarrow band frequency modulation nbfm
Narrow band frequency modulation nbfm
 
General expression of fm signal
General expression of fm signalGeneral expression of fm signal
General expression of fm signal
 
Angle modulation
Angle modulationAngle modulation
Angle modulation
 
Frequency division multiplexing
Frequency division multiplexingFrequency division multiplexing
Frequency division multiplexing
 
Vsb modulation
Vsb modulationVsb modulation
Vsb modulation
 
Demodulation of ssb synchronous detector
Demodulation of ssb synchronous detectorDemodulation of ssb synchronous detector
Demodulation of ssb synchronous detector
 
Generarion of ssb phase discrimination method
Generarion of ssb phase discrimination methodGenerarion of ssb phase discrimination method
Generarion of ssb phase discrimination method
 
Generarion of ssb frequency discrimination method
Generarion of ssb frequency discrimination methodGenerarion of ssb frequency discrimination method
Generarion of ssb frequency discrimination method
 
Ssb modulation
Ssb modulationSsb modulation
Ssb modulation
 
Demodulation of dsb sc costas receiver
Demodulation of dsb sc costas receiverDemodulation of dsb sc costas receiver
Demodulation of dsb sc costas receiver
 
Quadrature carrier multiplexing qam
Quadrature carrier multiplexing qamQuadrature carrier multiplexing qam
Quadrature carrier multiplexing qam
 
Demodulation of am synchronous detector
Demodulation of am synchronous detectorDemodulation of am synchronous detector
Demodulation of am synchronous detector
 

Último

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 

Último (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 

Keep your notebook with you

  • 1. 2/12/2010 t y Keep your notebook with you. C Write important point and questions that comes in your mind Solve Mind band exercise. Programming C Rewind when not clear Language Ask Questions by call or SMS or by mail By: Keep Watching Keep Learning Yogendra Pal yogendra@learnbywatch.com THIS IS INTRODUCTION Dedicated to My mother and Father 2 Computer Computer… • Electronic Device • Two very important for a programmer • Store, Manipulate and Transmit data. – Numeric • Data can be – Character – Numeric • Scientific and Engineering Applications – Character (Name, Address etc.) – Numeric – Graphics data (Charts, Photographs, Videos) • Business applications – Sound (Music, Speech etc.) – Numeric and Character 3 4 Memory Memory… • Every information is stored in binary code. • Bit is the smallest unit of information storage. • Binary code is the sequence of 0s and 1s. • Bit consists a single binary digit (0 or 1). • 0 and 1 are called bits. • We can interpreted 0 and 1 as: • 0 represents OFF and 1 represents ON. – 0 : False : Off • 8 bits makes 1 byte. – 1 : True : On 7 6 5 4 3 2 1 0 • Character takes one byte to store. 5 6 1
  • 2. 2/12/2010 Memory… Machine needs instructions • o 1 bit consists 0 or 1. • • 8 bits makes a byte. 210 (1024) byte make a Kilobyte or KB. I • 210 (1024) Kilobyte make a Megabyte or MB. • 210 (1024) Megabyte make a Gigabyte or GB. • 210 (1024) Gigabyte make a Terabyte or TB. Bit < Byte < KB < MB < GB < TB ć 7 8 Programming Language Machine Language • Machine Language • Strings of numbers giving machine specific • Assembly Language instructions. • High-Level Language • Also known as Machine code. Example: +1300042774 +1400593419 +1200274027 9 10 Machine Language… Assembly Language • Very Few programs are written in machine • English-like abbreviations representing language because:- elementary computer operations. – It is very difficult to work with machine language. • Simpler than machine language. – Program written for one type of computer will not Example: run on other type of computer (Each type of LOAD BASEPAY ADD OVERPAY computer has it’s own instruction set). STORE GROSSPAY • Translate in machine code before execute. • Translation is done by assembler. 11 12 2
  • 3. 2/12/2010 High-level Languages High level languages… • Codes similar to everyday English (Easy to • The program written in high level language is understand). known as source code or source program. • Use mathematical notations. • The compiled source code results in machine- • Example language. – grossPay = basePay + overTimePay • Machine language code is also known as • Translate in machine code before execute. object code or object program. • Translation is done by compiler or interpreter. 13 14 Compiler vs. Interpreter Program • Interpreter reads the source code one line at a • Using programming language we create time convert it into machine code. instructions or set of instructions. • Compiler reads the entire program and • This set of instructions is also knows as converts it into machine code. computer program or software program or • machine code is a code that the computer can just program. run directly. • Example programs or softwares: • machine code also known as object code or – Word processing program binary code. – Computer Games or video games 15 16 History of C C: A Middle Level Language • Evolved by Dennis Ritchie in 1970 at Bell • Best elements of high level language and Telephone Laboratories from two previous control and flexibility of assembly language. programming languages, BCPL and B. • C allows the direct manipulation of bits, bytes • Used to develop UNIX. and addresses. • Used to write modern operating systems. • C has several built in data types. • Hardware independent (portable). • Permits type conversion. • Standard created in 1989, updated in 1999. • No run time error checking. BCPL B C Martin Richards Ken Thompson Dennis Ritchie • Well suited for system-level programming. 17 18 3
  • 4. 2/12/2010 The C Standard Library C Standard Library… • C programs consist of pieces/modules called • Avoid re-inventing the wheel functions. – If a premade function exists, generally best to use it – A programmer can create his own functions. rather than write your own • Advantage: the programmer knows exactly how it works – Library functions carefully written, efficient, and • Disadvantage: time consuming portable – Programmers will often use the C library functions. • Use these as building blocks 19 20 Other High-level Languages Structured Programming • Other high-level languages • Disciplined approach to writing programs. – FORTRAN • Functions are the building blocks of programs. • Used for scientific and engineering applications • Allow you to code separate tasks in a program, – COBOL make your program modular. • Used to manipulate large amounts of data – Pascal • Clear, easy to test and debug and easy to • Intended for academic use modify. • C is a structured programming language. 21 22 Library and Linking Program Development • Library : Collection of functions. • Edit : Program is created in the editor and stored on disk. • Linker : Combines the called function object • Preprocess: Preprocess program processes the code code with the code you written. • Compile : Compiler creates object code and stores it on disk. • Link : Linker links the object code with the libraries. • Load : Loader loads program in memory. • Execute : CPU takes each insruction and executes it. 23 24 4
  • 5. 2/12/2010 Form of C program Mind Bend • The main() function must present in program. • Write 4 different data types. • Keywords can not used as a variable name or a • What is meant by a computer program? function name. • Differentiate bit & byte? • Case sensitive language. • What is a machine language? How it is different from High level language? – else  ELSE  • What are the advantages of high level • It may have many functions. language? Give some examples of high level language. 25 26 To get complete benefit solve all the quiz on Mind Bend www.learnbywatch.com • Differentiate Compiler and Interpreter. For any problem in this tutorial mail me at yogendra@learnbywatch.com • What is source program? with the subject “C” • What is object program? For Other information mail at • Who develop the C language and where? info@learnbywatch.com • Can we use uppercase in C program? Keep Watching Keep Learning • Computer is an __________ device. NEXT IS C BASICS • Binary code is the sequence of _ & _. 27 5