Assignments On Pointers
Assignments On Pointers
As
signmentonPoi
nter
s
1
. WAPt
ofi
ndt
hes
umoft
woval
uesus
ingpoi
nter
s.
2.WAPus
ingpoi
nter
stof
indt
hebi
gges
toft
hreegi
vennumber
s.
3.WAP t
hatwi
lls
wap t
he val
ue oft
wo i
ntegervar
iabl
espas
sed as
ar
gument
s.
4.WAPt
ofi
ndt
hear
ithmet
icmeanofagi
venl
istofnr
ealval
uesus
ing
poi
nter
s.
5.WAPus
ingpoi
nter
stor
eadanar
rayofi
nteger
sandpr
inti
tsel
ement
s
i
nther
ever
seor
der
.
6.WAPt
oaddt
womat
ric
esus
ingpoi
nter
s.
7.WAPt
ocountt
henumberofvowel
sinas
tri
ngus
ingpoi
nter
s.
8.WAPus
ingpoi
nter
stoc
opyones
tri
ngi
ntoanot
hers
tri
ng.
9.WAP t
odef
ineas
truc
tur
ewi
thdat
amember
srol
lno,s
tudentname
and t
otalmar
ksobt
ained.Dec
lar
ea s
truc
tur
e poi
ntert
oread and
di
spl
ayt
heval
ueofdat
amember
sus
ingi
t.
1
0.Wr
iteaf
unc
tiont
oaddt
woi
nteger
sandanot
herf
unc
tiont
omul
tipl
y
t
wo i
nteger
s.Dec
lar
e a poi
ntert
ocal
lthes
efunc
tions wi
tht
wo
i
ntegerar
gument
s.Us
ingt
hispoi
nterc
allt
hef
unc
tiont
ofi
nds
um and
pr
oduc
tofanyt
wogi
veni
nteger
s.
1
1.WAPofnes
teds
truc
tur
eus
ingpoi
nter
s.
1
2.WAPt
ost
oret
eni
ntegerel
ement
sdynami
cal
ly.
1
3.WAPt
ost
oreac
har
act
ers
tri
ngi
nabl
ockofmemor
yspac
ecr
eat
edby
mal
locandt
henmodi
fyt
hes
amet
ost
oreal
arges
tri
ng.