The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.

Programming Fundamentals Topic 1_01

Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by MOHD KHAIRUL AKLI BIN AB GHANI, 2021-03-11 19:31:48

DEC20012_TOPIC1_01_LATEST

Programming Fundamentals Topic 1_01

DEC20012

PROGRAMMING FUNDAMENTALS

LECTURE : MOHD KHAIRUL AKLI BIN AB GHANI

http://www.psmza.edu.my

Online Class

DEC20012 – Programming Fundamentals

Before Start ……

Make sure microphone in mute
mode
Don’t chatting

No multi-tasking

Beware to click

TOPIC 1

INTRODUCTORY TO PROGRAMMING
Presentation 1

LECTURE : MOHD KHAIRUL AKLI BIN AB GHANI

Learning Outcomes

At the end of this presentation, you will be able
to:

▪Describe the C programming
▪Explain the background of C programming
▪Describe sample of C program
▪Describe the Compile and Execute programs

ProgrammingDefinition :

▪ Programming is the process of writing instructions or
▪ Programming is the process of writing computer

programs or
▪ Programming is a process of designing / creating a

program.

C ProgrammingBackground :

▪ C programming was developed at Bell Laboratories in
1972 by Dennis Ritchie.

▪ C programming is a general-purpose programming
language that is extremely popular, simple and flexible.

▪ It is machine-independent, structured programming
language which is used extensively in various
applications.

▪ C is a base for the programming. If you know ‘C’, you
can easily grasp the knowledge of the other
programming languages that uses the concept
of ‘C’.

History : C Programming

Sample of C Programming

Source Code

Output

Explanation

• ANSI standard has defined many library functions for input and output in C language. Functions
printf() and scanf() are the most commonly used to display out and take input respectively.

• Every C program starts executing code from main( ) function. Inside main( ), there is
a printf( )function which prints the content inside the quotation mark which is "C Programming" in
this case.

Compile & Execute Program

Compile / compilers
▪ Compilers are programs that convert a program written in high-level language

into machine-level language program.
▪ This process is called compilation.

Execute
▪ Compiler converts source code into object code.
▪ Linker will convert the object code into executable code.
▪ Loader will take the executable code from the disk and place it in the memory.
▪ This process is called loading.
▪ These executable programs are executed to get the output. This process is

called as execution.

Compile & Execute Program

Summary

In this presentation, you learnt the following:
▪ Programming is the process of writing instructions
▪ Compilers are programs that convert a program written in

high-level language into machine-level language
program.
▪ The executable programs are executed to get the output.

Section Break


Click to View FlipBook Version