Date post: | 19-Jan-2016 |
Category: |
Documents |
Upload: | matthew-cameron |
View: | 223 times |
Download: | 6 times |
“Edmund Hillary”
IT IS NOT THE MOUNTAIN THAT WE CONQUER BUT
OURSELVES
INTRODUCTION TO C PROGRAMMING
LANGUAGE
MUHAMMAD FIRDAUS HARUN
WWW.FIRDAUS-HARUN.COM
FSKSM, UTM
AgendaYour Background in Programming
Skill What is a C Programming
Language?HistoryCharacteristicProgram Structure
Programming Skill
History of Cdeveloped in 1972 by
Dennis Ritchie at the Bell Telephone Laboratories – UNIX
Derived from ‘B’ or BCPL language – 1971
1983 – ANSI C / ISO C1990 – C901999 – C992007 – C1x
C Programming LanguaeHigh Levels vs Low LevelsCompilerError (Syntax vs Logical)
High Levels vs Low Levels
High Levels vs Low Levels (Cont.)
High Levels vs Low Levels (Cont.)
Compiler
Uses of CSystem programming i.e.
Operating System and Embedded Controller
Microcontroller
Supercomputer
Program StructureA 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
1. Program is written in the form of a number of text files using a screen editor.
◦ source program
2. 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 ResourceWebsite :
◦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 TopicsMore details - Program StructureQuick review – Programming
Methodologies
Schedule1 2 3 4 5 6 7 8 9 10 11 12
MasaHari 8.00-8.50 9.00-9.50 10.00-10.50 11.00-11.50 12.00-12.50 2.00-2.50 3.00-3.50 4.00-4.50 5.00-5.50 6.00-
6.50
Isnin DCP2073DP1-N29
SCJ2203KPU10-N28
SelasaSCK3323
KPU6-N28
Rabu DCP2073DP1-N29
Khamis SCK3323KPU6-N28
Jumaat - Ahad (Research + Degree++ + SPACE)
DCP2073 = ASAS PENGATURCARAAN C (FKKKSA) SCK3323 = SCJ2203 = INTERNET PROGRAMMING (FSKSM)