Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Subject: PRF192- PFC

Workshop 01
Objectives:
- Exploring memory of a C program
- Write a basic C program

Part 1: Explore memory structure of programs

Sample

c:22936 ‘A’
23
i:22936 1
16
l:2293 1000
612
f:22936 0.5
08
d:22936 12.809
00

Complete the code of following program then draw it’s memory structure
(4 marks)
Part 2: Write a basic C program

Write a program that allows user inputting 2 integer and performs 4 operations +, -, *, /,
then the result is printed out to the monitor (6 mark)

You might also like