0% found this document useful (0 votes)
17 views

Assignments On Pointers

The document provides 13 programming problems involving pointers. The problems cover basic pointer operations like finding the sum and maximum of numbers, swapping variable values, reading and printing an array in reverse order, adding matrices and counting vowels in a string. More complex problems involve defining nested structures, dynamically storing integers and modifying memory to store larger strings.

Uploaded by

Krishnagopal Kar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Assignments On Pointers

The document provides 13 programming problems involving pointers. The problems cover basic pointer operations like finding the sum and maximum of numbers, swapping variable values, reading and printing an array in reverse order, adding matrices and counting vowels in a string. More complex problems involve defining nested structures, dynamically storing integers and modifying memory to store larger strings.

Uploaded by

Krishnagopal Kar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CSE–291

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.

You might also like