1 / 17

“Edmund Hillary”

“Edmund Hillary”. IT IS NOT THE MOUNTAIN THAT WE CONQUER BUT OURSELVES. Muhammad Firdaus Harun www.firdaus-harun.com FSKSM, UTM. Introduction to C Programming Language. Agenda. Your Background in Programming Skill What is a C Programming Language? History Characteristic

hanh
Download Presentation

“Edmund Hillary”

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “Edmund Hillary” IT IS NOT THE MOUNTAIN THAT WE CONQUER BUT OURSELVES

  2. Muhammad FirdausHarun www.firdaus-harun.com FSKSM, UTM Introduction to C Programming Language

  3. Agenda • Your Background in Programming Skill • What is a C Programming Language? • History • Characteristic • Program Structure

  4. Programming Skill

  5. History of C • developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories – UNIX • Derived from ‘B’ or BCPL language – 1971 • 1983 – ANSI C / ISO C • 1990 – C90 • 1999 – C99 • 2007 – C1x

  6. C Programming Languae • High Levels vs Low Levels • Compiler • Error (Syntax vs Logical)

  7. High Levels vs Low Levels

  8. High Levels vs Low Levels (Cont.)

  9. High Levels vs Low Levels (Cont.)

  10. Compiler

  11. Uses of C • System programming i.e. Operating System and Embedded Controller Microcontroller Supercomputer

  12. Program Structure • A C program basically has the following form: • Preprocessor Commands • Type definitions • Function prototypes -- declare function types and variables passed to function. • Variables • Functions

  13. Basic Idea About C • Program is written in the form of a number of text files using a screen editor. • source program • Completed source file is passed to a compiler - a program which generates a new file containing a machine code translation of the source text. • object file or executable file

  14. Hello World Sample Code #include <stdio.h> int main(void) { printf("hello, world\n"); return 0; }

  15. Tutorial Resource • Website : • http://www.cprogramming.com/tutorial/c • http://www.iu.hio.no/~mark/CTutorial/CTutorial.html • Youtube.com – type keyword ‘C Programming Language Tutorial’ • Announcement – http://c.firdaus-harun.com (defer)

  16. Next Topics • More details - Program Structure • Quick review – Programming Methodologies

  17. Schedule

More Related