170 likes | 544 Views
“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
E N D
“Edmund Hillary” IT IS NOT THE MOUNTAIN THAT WE CONQUER BUT OURSELVES
Muhammad FirdausHarun 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 • Program Structure
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
C Programming Languae • High Levels vs Low Levels • Compiler • Error (Syntax vs Logical)
Uses of C • System programming i.e. Operating System and Embedded Controller Microcontroller Supercomputer
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
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
Hello World Sample Code #include <stdio.h> int main(void) { printf("hello, world\n"); return 0; }
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)
Next Topics • More details - Program Structure • Quick review – Programming Methodologies