Compa
ijorn
Compaion onteL.
-hetoo onte y uing
We can Combne
ie
Cormifon aberatou in C.
the
impliment a sy uing alfevhey
we Can Canditn
bue fohe vahd
otetun
+ onetunßfale fostthe unSal1sfied
Gnd
CondiHon
fogsib cen bortt oirteu Potto Same
enboth
the oelohve ocitoni
bot he bointe.
tinclude dioR>
int main C)$
avnI]= i, 2,3,4,5,63,
int
int 4=kan[51;
fain!("dln',b<=a)) ) outpit-l
canntyC"vn', );
4=Lam[3];
oetun o'
3
Int main C)
ithac]5,14,7, 89A5,32, 23,1o;
int-kq, = a[s],
I/ 45
thintl("d,*(3);
3
Rointen to unthon
uing he yasdal ie faesd b-the
bcaten he onc-hen he
menouy
spanomele in the fonchen, defoskin
he fachim
pegoames. ointorl,aotnee!
ofbehon aokoieyef
Gobheet uaing
acbts hele
are BtouCd cuing bointere
fosinten
Poling wtact fointer! done
te
csen ce fncHon cwoul
Chonget mode by he
aiokle he fchon
to-he focal
#inclde <sleioh
Void Swaß Cint a, int b)
G=b
btemf
ind mainC)
int q= lo,b-20 )
Pautisg enlen-ba alern ongumert intbal
fone
sken we fp a foiter al on
thenthe odbrellhe enioblle
o
a enioblo
changes mode by he fchen tng
do anyipeansny ode ot he ddrel
fointei dehaiue l alo ra
Hnasn
paed Vaniablk
enefrnce in
DFaenigPointen oith yrunt
evnce it o declige eer atng
rtomer? foinles. fud
ond
Call lay
by
agunment 8alily orçleunçe inhe
talonong
any callai feameler,H
anchen the
main Junchon. defnton,-hefrchan toler
Anchen fanomefer by cung C9
loIn hevale
he gl te olinectl4 acre!
peraten. By uing it Con
he
He value e ocohcn. paromélen inecly
Sercm
aom jP oupinal
dckn defnton
ghachrbme (argt, Loy;
Call by oreenunce tng oinde
#incdesAdio-h
Yoid meobfy Cntapt)
ahe ph)
3
int mon c)
int um= I0)
by ongfeunce
Void &uapOnt ka, int#b)
int temp = a;
+b temby
int main C)
int n2=0
Ain!C"Baoue Song:-n if rd ond n2 if
tn",ni, nz))
Slcn ) ;
/.d\n", n.,n2))
JieBunn O,
Yoid monc)
int Q,b Sum'
int odd Cint+,int*)
hoint C"Eiten finßt value")
Bcagit "Jd"a);
ainC"Enten gecordalue-");
Song C"13", L);
st oddCin+x, iod y)
Z= *X+*Y)
in Clopauage 04a
Aooay and Pointen Greneralyfointet
a vey
ne he
Song Jelotitonfip. he addrelle! ome
Vaniabla coAict codoin
Co
olhor vaniokala? and coilt avays a boiter
Stovuel he anting addneu he avay
name iteell acts al a foite t
ovay elemntthe aunay and alo
he i t t bale
Ya folnten Voniaklo stonel Canhe moniate
Qddrey on avnQy ten we
all Jhe arvnay elamente ing the boinde
Vaniaalo Pointel Con be allociated wrt
te mlhcdimenlional anay? C20 ond E-0 ayd.
narroy nome i gen ra treoted al a ointe
to tte Hast elomet he aay Qnd
Coe foe the bate addorel he aIay
in onothej bointen Vanioklo, then we Con ealy
Tonáalate Re aray ing fbointen airthmehc
in a CRogulam
ointetype -katay._ nameJawnay. 3];
tinclde<Stdioß>
jot moin C)
Ho,So ;/| Agnay declarnhin
ird av[5]=o, 20,3o, & initializ icon
Jon Cint i=0, i<5; i4+)
Caru+));
oLlpat!
Value = o
inde o] Addre = lovo
Lindex1Addoel- l004 Value =2o
Lindex]Adreu elo0B, Value -zo
Lindexg] cddel lo92 ,Value4o
Cinder dlneus lol6, Value
int main C)
ind Van2 =2)
ind Vant 3,
Declaning on anoy ointersto inge
chh]-Bvon 2;
yon Cint j=o; i<z, i+)
Utetnn 0'
3
Outprt!
Value at l-2
Volse at []z
Pointe - to oter (Doule Poirdet
tuled cshe uont to Stone eaddhee
onothen ointenhe ivt pointen i9
addreí f tAe Vauiabl
ted to Stoute he ued to toue
CAnd the lecorc boiter i
he addreel sf-he ntt fointen . H i9 aleo
Knocan ad coulo-fbointerd
We Con We a fpointen do a fbointen to chonge
the value fnomal pointen
Vaniablo -lzed 2-0anay
Adouhlb bointen occubier he fome amougt
&hoce in -the memoNy Pack ar a noNryl
pointen
Decanahcrn
dotatype boirden t* nom@_ef van= noovmfa
+inahde <Stdioh>
int moin C)
it Vat l00
int tr2;a
inta t',
hr2=von'
3
it mon )
in t yb= ka;
kshy
Tnleu ond Che Dineníional ekerays
aWocater Continoul mernoy
he eloments the avoy
Jocabor
he oale addrel =odt elnent addnei (ndox o)
the avg
Fan ezonplo- inta[s] Llo, 20,3o, 40,503:
[0 20 Z0
lod lo08 | ot0 l016
Baie Abre!
#inckdeksLlio-k>
int man C)
int a[s-Ls,20, Bo,Ho, 5oy
aunintC"ddnell of anmj-Bn'", i,lonn;
etuin
Vabue
Valae am[J: 10 cAdrell gfaru i: lo04
ann C31:20 clddrel arvi L3] l012
Value
Valie avl: bo
an cuing beihen nohabion
it maln C)
int aa[s]*5/0,15,20,2s3
haG-o,is;i+) ol
3
ietun
artput Vale aruloI - 5 Addref fano] loro
Value an oll-leo4
Vllie an L2]= 16 ddneu aui
Vale aulz]- 20 ddneu c
Valuega4J=25 R4nel an -1o8
Pactra to ati the o roy elnenti ing
valuenoften
deinter and cipt
#nchue<stlioA>
it mairn
int ams]:f5, 1o,15, 20, 25
int i0)
aninH(/H,an CJ);
crinyC'eJ\ *n+i)),
drina
3
Output Value o arnel- 5 55 5
1
Value a CJ=lo lo 10 10
cAddnel anCij=loo4
Vue amC2]=15 515 15,
Addne arm 2]: lo08 20 2o 20
Value ACz1=20
ddhell T3 lo12
Voinler Variabls
elbnert he
(eeallo uoite dtrlannl]
2o0 510 15 2025
lo2. 1ot6
On lplgina aialhvneic and demeuncing e
Con See Hhe
enonellon Ct) Jenodel
He addnel a ith elornent sf aay and he
ealaetien *CAote ti) denota the are of
Hhe ih elment e avy
Nas det u Jee tsa he
beloeen Jhe rome e an avaydleunce
ond a o
Vanla .he nome anuay 3a
isa
Codant polten herlee j+ col alesay
A i8 not not a
Vatiqklo , Hence we
othen addrel to t nej-her Con
Gan
ign Some
toe move iH y incMemening ou deCslnortin.
ar - Berurn;
But Since ptr i8 a Vaniab lb Vaniablo, all hele
eion ane valid gon it
ptr=lum
fotrt,
ogom to yjnt the valke on treu aey
etamat by Rubfjahing a fbenten&ia
int moin C)
iod ams- 5,1o15,20,es,
nt i, *
ten Gi-o; l<5;i+)
kaniai, cJ);
koninC Value gaitr-ydvdvdvdn,on
tAadned a Co]=|o0 loo lov lo0
Vale a
Valo
Clldaeile an21-108 loG 1o8 08
Value amls15 15 15 15
ddrel an C37e1)2 112 12 12
Valo a I3] 20 20 20 20
Valao
Qoleng an tn dimeniionAay
In a ao
duo chmerfiona avay coe Can aeel
ushend
each elonant by uling tob Aukknie,
ctced number
be acetad Coilh he helß o pton
rotien alo
int main C)
int aun C3s cHI-0,1,12,133,
jntidi
fovnl=o,i(3;i)
i, anüj,*(arm+i);