Search Header Logo
DSTR Week 4 Pointer & Dynamic Allocation

DSTR Week 4 Pointer & Dynamic Allocation

Assessment

Presentation

Computers

University

Easy

Created by

Chong May

Used 6+ times

FREE Resource

37 Slides • 1 Question

1

DSTR WEEK 4 -

Pointer & Dynamic Allocation

media

2

Learning Outcome 1

  • To understand what are the Pointer Variables.

  • To learn how to declare and manipulate the Pointer Variables.

  • To understand what is the address-of and dereferencing operators.

3

media

4

media

5

media

6

media

7

media

8

media

9

media

10

media

11

media

12

Hands on exercise -

To understand more about pointer & address.

(20 minutes)​

13

media

Pointer and address exercise

10 minutes

14

media

Pointer and Array exercise

10 minutes

15

Learning Outcome 2

  • To learn how to pass a pointer to a function.

16

media

17

media

18

Hands on exercise -

To understand more about pointer and function

(15 minutes)​

19

media

20

media

21

media

22

Learning Outcome 3

  • To learn how to access a class object members using pointer.

23

media

24

media

25

Hands on exercise -

To understand more about how to access class object members using pointer

(15 minutes)​

26

Learning Outcome 4

  • To understand the relationship between pointer and dynamic allocation in memory.

  • To learn how to use the new and delete operators to manipulate dynamic variables

27

media

28

media

29

media

30

media

31

media

32

media

33

media

34

media

35

media

36

media

37

Open Ended

Question image

Do you have any question would like to ask?

38

media

Next class:

Struct and class​

Some text here about the topic of discussion.

DSTR WEEK 4 -

Pointer & Dynamic Allocation

media

Show answer

Auto Play

Slide 1 / 38

SLIDE