1
ICE 1291
Programming with C
Md. Emdadul Haque, PhD.
Professor
Department of ICE, RU
Pointers
Dr. Firoz Ahmed
Professor
Department of ICE, RU
Chapter Outline
3
Introduction
4
Introduction
5
Introduction
6
Introduction
7
Introduction
8
Accessing the address of a variable
9
Accessing the address of a variable
10
Declaring pointer variable
11
Declaring pointer variable
12
Declaring pointer variable
13
Initialization of pointer variable
14
Initialization of pointer variable
15
Initialization of pointer variable
16
Initialization of pointer variable
17
Initialization of pointer variable
18
Accessing a variable through its pointer
19
Accessing a variable through its pointer
20
Accessing a variable through its pointer
21
Accessing a variable through its pointer
22
Pointers and arrays
23
Pointers and arrays
24
Pointers and arrays
25
Pointers and arrays
26
Pointers and arrays
27
Pointers and arrays
28
Pointers and arrays
29
Pointers and arrays
30
Pointers and arrays
31
Pointers and character string
32
Pointers and character string
33
Pointers and character string
34
Array of pointers
35
Array of pointers
36
Array of pointers
37
Array of pointers
38
Array of pointers
39
Array of pointers
40
Array of pointers
41
Array of pointers
42
Array of pointers
43
Array of pointers
44
Array of pointers
45
Array of pointers
46
Pointers as function arguments
47
Pointers as function arguments
48
Pointers as function arguments
49
Pointers as function arguments
50
Pointers as function arguments
51
Pointers to function
52
Pointers to function
53
Pointers to function
54
Pointers to function
55
Pointers to function
56
Pointers to structure
57
Pointers to structure
58
Pointers to structure
59
Pointers to structure
60
Pointers to structure
61
Pointers to structure
62
Pointers to structure
63