Professional Documents
Culture Documents
2ol 339 Candidater-Raga Be Ece: 20618 Pcoyc Adwanued Cprdyamirg O5 O8 Fni An
2ol 339 Candidater-Raga Be Ece: 20618 Pcoyc Adwanued Cprdyamirg O5 O8 Fni An
13
14
15
16
17
18
19
10 20
Signature of the
Name of the Examiner Date
Examiner
NomeRV Rogaui coushe uone 8LCoy
Cese name:Adwanued c Prvgnammin9.
Relnuum: 20L339
Panu-
Symtax ho declore Pointe vaualole
datakype*Van_name;
int ptY
2 Puea C i r c l e
#inclnde LStdio.h7
veid maunC)
look = 5;
Hloak *fp= fr;
piang hf, 3:1y +fp "fe);
Gutput
18 5000oo.
3 Aay ponters
CoUecbon duteenk memhy fddresg
dmtax
Doatahype *pounten Vabuable LSiuye
i n t maunc)
iti- 5D
nt +ptr - I
eubput
Addoeys i =6olo
Radress ei=6olo
Vauue iso
5 Ue stcnC)
TO nd he hast occuence e he characten
mtax
han nchn (chan a[iboChan ch)
6 Stuuctwre
Coection e dbberent en diimalan e
Smkox
Sut tagrarme Atuctwe hame
Dtabype stuuche hamel;
Doutabype uutune name 2
poutoype u t e name n
Date: 5T|2 no. o2 R:V. Ragwi
Naurne RvRogavi COwe codle 8LCOY
Polum 20339 Cewwe name AduUaned c Progamming
8 fpuntg ) fscanbC .
rube tEne Lentent nto *Reoo e entent om
ole fle
Sumtor *Smtar
pnt (fe FS vanvalue)scant p . FSvan);
whee P Jue pouteh b whene fp hle povnte o
Ae datobype FILE Ce datrbpe FlLE
TCe
TCe puopose et Y n e kuncaion fopenC ) s to
Stder
notthn9
wtth O N O L L
*NULL peunte ammed
Sumtax
databype pby(databype *)o;
dotabyp
Exoumplee
int ptr Cint *)o;
iwt +Ptr=NOLL
Puogam.
tinceude LStdio. h>
int man C)
nt *p=o; i n t * 1p =NOLL)
Output
pounben
oduttmehic s net possiele n pountehus e
*Pounten
veid
SYmtar
det veid *Ptr;
oogam
/Pdd uoo numbes
incude 2Stdoh
tnt mauunC)
e 1025, 1b=)5,
void p) =/1o , *ip2 Q16
=
*Cint)ipa.),
prunw C"/d', *Cintt*)ip) +
Outpuut
40
Veid main()
teric=0,ic 22 ic+t)
PrutC)n
6utpuut
2
Anay peten
CeLectidn odubenent Memey addrey
ic =47
int ia =25, ib=16,
int1ap3J;
iop[o = ia
iap[iJ=Qb
iaP[2J-ic;
*iap[o3, tiap[ J, *iap[2]);
p r i n t C d f d tal
h,
/ u r , iaplol, iapCi3,
iapl2]);
pront C fu
8utpuut
25 16 4
2618068652
26180b86qy 2618D686y8
15 Spulen). Smtax
TD 6und Lengt ung int rlen (chak);
print4Chd,wlen (s));
Lomam
t i n d u d e 2Stdio:h>
include L Stringhz
maunC)
Gutput
n)SoemPC)
Covnpoue h e hwo u n Arung a e e9ual
duuterence
Pouogam
ttinceuele Stdio. h>
Hinceude Stung-h>
Intmaun )
Cnan oCioo]=ECE
b[ioJ ="ECE
d , romp (a.b);
print
autput
) Stupy )
To copY One Soung J t o Qunethen stnng
tinctude Lstnng h
Int maun ()
"
eutpuut
ACP
iv)Strcat()
TDmeC hwo tungs.
#nude stnngh7
t manC)
c h a nS i[ o J = " H e l o "
utput
Hello Old
ALten Cencatenatibn
dymtax
-(Eypecast *) malloc CSiae);
ptr
ptr
(veid*)malloc (sine );
gam.
DMA
/Read and punt arUay
5 numben using
Tmalloc)
tineude Stio.h>
t n c u d e L Stdlilb.h>
main C)
t ka , l i
Scamg Ctd',va[J)
printh Cd", Ca+D;
+
euput
ee Ca)
Smtax
(no eg blE,wiage);
Pta-Cbypecant*)calloc
ptx - (veid*) collo Cno. o6 Wk , Aime)
Pooram
IRead and punt
aay e 5 numbern ng calloeO
#rnclude ZstdiD.hz
inceuole L s t d l h
maun C
nt ta, ,
a (alloc (Si4) l a =CallocS,Sice4 Cint))
enL-o ; l L5, t+)
4ee Ca),
put
mba
ptr-Yealloc (dataubype pbuten,Meumm);
nd calusake Sum
calculateSu
PYOgam= Read 5nuwmben bava
#inceude stdio-hz
tinceude 2Stalib.h>
main C)
mtp=malloc ( S*y);
jnd,s1=Oo, S2=o;
5 etomeuts 1d \n,SD;
printf CSum et
/Rea0locate Memony spae
Cp,1ofu);
E9Lealloc
Leio;lt+)
4en (= o;
Scant Cd',p ( )
S2-S2+PCAJ:
Date 52 PgnD:3 PV Ragou
Name: RV e a j a Cawe loste: 18LLO
Ceuwse name
pdvanced c Dyorammang
Roll num:200339
phontt C Slum s 1o nos d , S2)
ee (P);
ubput
123 A5
5 elemenb) 15
Sume
2 3 4 5678 9 1o
S5
Suum e lo hos
Simtay
4ee Cpeutenvanialble);
Boeram
Reverse to numbers usung DMA
h>
#incluuoe LStdio
Hinceude LStoldb- h>
eh-9;L>=o ;R--)
ee Cp)
ouout 6 7 891o
23 S
Lo 9 8 76 5 y 32
20 D fgets)
entine fle Cevtent
to 9uead
Smtax
mainC)
FILE +pi
=
fopen Ctle 1tct, "wt );
Date: sl8/21 Pgno: 1S PV Ragou
Narme R V. Ragaw Cewveuode 18Lc Oy
Cewse name: PdWamed CProramnAng
Rolnum'20L339
t t ",o);
FILEp2 fepen C" fle 2
fpmnt Cp1, "fdvanued C Progham);
Clhan aCioo],
euwund P D
Ouutpuit
Phdonced CProam
i)epenc)
epen a nes tie (O) existing hde
Supmtay
ptr openflename, Mode o6 operahbn );
Proamn
wute a content favanced intd a hle
tinclude / Stdio h7
main ()
FILE+$P
fpfopen C pdvamced',"w");
fprinth CtP dwanced
ylose(Sp);
Date: 5/8/21 P9no: 16 RV Ragaui
Nane P:VRagawi Cowyecode 18LCoy
Ceuye ame Pdwonced C Oroenammun
Rouunm: 2o331.
ile veateo
Advonoed
Pdvanced
t fprintg 0
wibe ttie centent n t o a fule
Spata
print CHP. FS Van oluue),
Exomple
pmint CHp. Pruo97ram)
4printt (H,"S", Duogram),
Poam
wwte a_Content Progpam Intoa hle
tincludL Lstdio.h>
maun
FILE SP
p fepen poram.bat,w)
pmint CAp puoam
Lose (Sp)
F lO
eueated
B0gam. txt
Proam
Date'S8l21 Pgno: RV Ragow
Name: RV.Rapui CBueode: 18UOy
RoUnwm: 20L331. Ceuove name: pdwoned CCrogrammang
iv)fscant)
Pead fne
uentbent bm tile
Supntay
scaung Gp. FS,qvan),
n c u d e Lstdio:h>
Ymaun C)