0% found this document useful (0 votes)
34 views12 pages

Pointers 2

The document discusses pointers and arrays in programming, focusing on their definitions, operations, and memory addresses. It explains how to manipulate pointers, including dereferencing and pointer arithmetic, as well as the relationship between arrays and pointers. Additionally, it covers the implications of using pointers in functions and memory management.

Uploaded by

Lakshya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views12 pages

Pointers 2

The document discusses pointers and arrays in programming, focusing on their definitions, operations, and memory addresses. It explains how to manipulate pointers, including dereferencing and pointer arithmetic, as well as the relationship between arrays and pointers. Additionally, it covers the implications of using pointers in functions and memory management.

Uploaded by

Lakshya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Pointers ( Part 2) -

-_-

intarr[1 → 4*10=40 's

¥☒É
an

an →
array
name
¥2T ?ay taro


⑧ operator →

#Add2
any

fin±¥nzm
&ar
f art 10) →
air → Fist toe Add my

auto)→ Vdu d-
]
0th inks
a
Ianto]
-

*=
( tÉÉ

our

an_→
symbol table * am → 23

" location

yo
→ *am → * (asti )

¥2 L

*⑨H

"
→ local

"inast)
-

at
vow
o
vain
.at#ation
→3
z


Karr + D


AH +1

I
w¥µd→③
an Ci]

=L * (anti)
___ -

w
addrus

d
valve

Can placed
*

air → * + 2)


→ * (710+2) P++ agh/next
block
→ As (71-1) memory
anti ]= * ( anti )

I[ard=*(i+ar①→Esr☒
or

ABBA
Differences Point
cottony
9T¥
];→"°Ñ

int am Ceo
71°
, T .
-
-

I → 40
byty
area

f:_E--
*
int*p=&an[o]#→8byt①
- -

addscy

stood
go am
I tap

*
p

710 →
vde→④=
an←→ize⑦- point

sizeof ) →

pointer -3 8
① Size Bock
No ob ✗ 4
'

prints
} ptr
an →

.

8bp#


② &→
int arras -_
{ 03 ;


71.0

&arr(0# → address
of
block at 0th index

71
int *
p=&a[ ]
0

923
-

710

PP
&p → adrdsas
of p
wale block

GI
Cannot be

Symbol
③ table ka content →

changed
Int#]/ 710

air
coet arrG]
-
S T
%
-

arr- •

cannot be
charged

inN%n=ar→ Error

int * Ianto ]
p=

923
-

I
p=p

pts
€ arr → 7W

pK→ 923
p

ptriptrtl
71071
=

2714N
art array
donated
?⃝
Characterised

i
char arm

L L L b
oh
2 entire
cont
am
fnctiee point content
t h
address Implementation
Different
Yaa
arr (b) a
2,3
- -

iatptptr-daml.co]
coat < cut

% pts
70

ch f) a a%%de
"

-
'

cha * Be =
Kahlo) ; ☒
cont <
c < <
asf ¥204
entire story
?⃝
top
-

☒ ay ?yJ
p9 9 , stop her

•p¥
< < use
cutup

bitter
chase =

-abcd①
cnn.TT-u.IT
[ m.no?ggy-yy.pZRT-
+F€$←•"]
*"
""
KARNA

"

iupmemoy-i [email protected]

functions
main C)
→ update

n¥¥

→ Before → -123
p=pH
p

→ •

main C) update
.

( p)
intvclz 5
* +1
Apa p

¥D←¥¥*①•±
✓d
int
*
palm
'

823
a- SH

µ
-

p
Before
-9*2 = 6

after _FP⑥
←ѱ*
main C)

"

f
an "

an [ is =

•¥i)

f+֥
Ben

rite
any
→ →

side to

Np
dek
?¥i€* +3


.

( am
Ism fan
g gets
in
?⃝

pointer Intro

÷::#
Array ( int

futon
fit :& amp

You might also like