You are on page 1of 9

A 3ha Abdulla

&1o0 20205048

IT-D-564?
C-Prograwnn

1Awa alamenk
(ollehon tomabng f
+ollechon u u h a
howosnros data hypA
I (Aquanu brakaH 1
s ubauttph
er
Aryay

olamnt accs
Ao-o poiuttn as it poiuten o tha u t zamut

t h th lollaLhon

Shrathou:
D
*Shuchw utou, o a lol&chon lowm huy oelamnt

wttuogeuuDws data p
&ruchwru A . (Dot opLalor) for eluuw) accs

Sruthu u wot poiutu.

elf RounKal druchuu


A &uchvu Cau hau mamban wheh poiuj

8ruehu Vouiab o t Sa hHA. Thu hys


Ov (alud df u a n a l otruchous aud a wid

dynamRe daa Swuch Pke trae ,fnld,

t,ett..

3 Advantage o typaodaf tn t
TypRda provid a leve oaruth'om eauwa
r o th acha NPRs lerng wwc allowiga you t t
rograwnm o Roc muoYR o tta
Copt
Coept jut

hat a Vaantablk 8hould mean. T h m a K it

eaun ho u t cleau tool but t awo mal it

an ean o nudr y ybu loda

A)Nead orunchon Cptgrawwwwy


To pvovR the Jaadabiuh o tood

ImoroA t nemcbiky othe od, anm


tau be wyd in ag proqram a t n ttaan
nchom
tocla
rom Sateh.
wra 3a
Debu99 el t e Loda would la a t n u1ou

w funthons, a eULor os aiy o bbl YaLcR


acad
5) bwt-in qunchon
y p e t):
Rahrn t type q obct for tha gun sigu
Obxut
WnL):
RLhun H mnum van o a

waam Va in a

RLn H Aum a Vau n a ut

Advan taga e ponte' ama nt


+ a l l o u ) vMaasenmtut of 8ructues Wwu a

allocatt wwewwo jnandtal

IallouA p a i a v a y aud 3htwsa o

MOre ejuenRy
Ttmakes poibu o pan addrn o ructu

uhre skuchue o he Aunchon


iwtad 0
Opuaror A ww as porM n b a Vaotabu,

whwm u
o t Vamabu
FXamP
a pointt
addius a e vanal
oPrahY we d o T

F willl addm oaa

PaTt-3

4) PAuston:
PLfon the pocm whh lemas inb anitt

wun unchon talu a lopy o itu wor) aSwalu

pYDlm Ay whch talu iwlf (alud


mwnsie tallA.

rojtam
HindL8tdio.h7
iheuou wath.u
H+incudn LStd ibn>

Voi wainl)

int n, x1
oat ectwnau, tam) dunonuiua
hor, X, Sin1, 3iuval;
print Eut te vaa
o x tin dguuy uj;

X X
X xc3 .14a| 180-0J

Sinval sin)
e ul h \n"JS

tom: x
8in: m

danowuanr a
*n * (2*t1)5
tm Am * x* x |denowut'vMabr,

Sinx 8in x t tum

ent1

wWu taewna cy 2 fab C3inval -3iu ))


prif ('3 um teSin 8en
7.}\W n)s
C dnamt mamery allocalion
C dup namT momoYY allocalions aafers To
)
Perrming manual marn managemonE r
(namuo memoYY allo calion n ha
p d
AayangeLage via a Youp
rogamMing

noon C Stardand bray Dami


malloc, Teal' c, Callbe and ea.
CDgnamuo mamor
|heratere O

dakeoed a a proouna
Can be
a data Sprucus
Sira G
Shicb he
fs changed dunn g h
(like Armg)
unim

Some funclis t aclnema


C
C Provrde
her asks. fou

dotned unden L Stdlibk-


Providoc by
heacle le t aclibat dynamie mbnoy
allocali Programming Tho
hy

1mallot)
2 Callo
8ree C)
realloc)
Null poiuten:

3 A ponte Vamable tat u ikliz2d wih

Nll Vaut o he m

PYOYam:

incud 4 thdio.h>
S

aAnC)

M a 10,b:20
8wap a /.de 7-d ,b)
PYinTC" Beore
a at l

a b

° natta 3uap a 7-d b da,b)


a,o)
w 4
Ourput
o 20
Beor wop
At 3ump 20 b LO

You might also like