Sthlen, STHLWN), Sthuph, Stheat), Stmeatt), Sthepha: 53.wte Down The Unctions O The Foloin Stelj Relaked
Sthlen, STHLWN), Sthuph, Stheat), Stmeatt), Sthepha: 53.wte Down The Unctions O The Foloin Stelj Relaked
>sthlen,sthlwn),Sthuph,stheat),stmeatt), sthePHA
StCn), Stheoi0, stCh,sthhev).
Sthlen)’His ashind redated dibka Auncticn used
to Pind ahe deest of a stmt. Hehe stei is
fassed as an auement
Foh CrmPleimt
d=Sthlenl"B00do)
Heke the out Put oP the Code wil be =6,
wn0>IS used t0 Con V¡hh a slang netm UPPer Case
to dowe ease, Tt takes wa alsguoments,ibst
is the destination and Seeond is the Souhee.
ahenamPAe:- Sthlwbl31, 32);
Hebe the dower ase stbimt of $2 ih be Stored in 81,
shuekIt is uSed t6 Covabla sthing Phom Aowe
is the destimati¡n nd Second is he Sahce.
Fok examplei thuPh(34,32);o t
Hche the uPe, case. stringoP.s2 ih be stoked in S1
PAGE:
DATE: 05/0/24|
Steinas.
Shmt T4 4okeg o obt0nents a
Hele lst 8bjng s 4he destinatlom ana
Second Stbns the souree, oissi
Foh ExanPle stteePs1,32);.
Hele the Sthimt hom $2, wi he coPied mto the Sthinn
mte,v-iable
<datattre:)Callocourbek OP blcekS,.
sizeofblock); bloek the
ketubnS the base addbess of the fibst
Tt
Pointeh vahiable
Qldocate memckt oh ointee e
Fob eraPleTo
elementS we Can use Caldoe() Fonctiãn
as klloS.
=(nt)aloelo, sizeofint);
Feel)- It 0S USed to beeasethe ddnagie omemobt
ob onoJdoel)
which is ollocated bd etheh ealloe Glbe
Auocion These alocated omemobi Pheed
to theih OWn,Qnd So we hNe to reised he memob i
bd using fhee) Luneion explicitA.
The Sätax is as folowsia
Pree(Tointeh tPe abiable)
Fo- CxamPle Fee();
Binakt ele
Text Rile Ehobin bimohdile
imate4 Ple an be Ple and o
PErheh leobhus the
asita heeotizedLaondelimina
i Jasideteted.
ted.
AeodOme?
Rahat is the Puboge of
head data Phom ai
Pheod) fneois used used o takes the ahtaments.
lon kecohd based manneb, Tt oPoferato,
befehence ofasthucue Noable,Sim Fomter.
oembek oP beods 0nd'tIE' 4N1e
datatre membeh 1i
PAGE: 33
DATE:14/l/2
doto4e omembeh 2
Fob xaomle’
Chach d4;
SAhuetuhe U'niom
The Ketapkd SteuctS The kesokd union ìs.
used to dePne astuctire, luged to deine atni¡n.
when a vakiable is a8soe-when a vaable 1s
aed wttha stkucte, a ag8ocited wth a uonion, the
leonle aJdoateg he the
omPileh aldoentes:
memoed Poh ench membeb, memop bd Considebing the
SieOESthuctuke s ual Sie of 4he dahest memoht.
othe Sum oP sies oP ES SO Sieof tuoaion is eNuad to
bnembeb&. he Site oP kabest oMembek.
Ahucure Union
>Akenating the vadue ofal> AJAenati the value of an
amemteb wid not abbout loP the member wild ateh
nembehsoP4he
lotheh oheh membeh vadues.
sthucture.
sevekad membehs oP
a n i the kst membe)h oPa
stbuctwe coon imitialize at lunioncomn be imitiaized.
omce.
ncde
Polews 0nede(sdlos)
the Content oP Sidio.hLas
Adyetadesi
ItCnhahGES Gode beAdablitt ad olioni~ah¡n
Aable.
p T+ Smtle Pie, CoPlen nested i-else.