HHARA THHAR UNIVeRSIY
Sctoo OF DISHTAACE PpuctoN CoMAwRA -641046
MARCA 202 CHA 1E )EAM
M 2
Degree M.Se Biotndovmatcs
Name of 4he
CoUYSe M.Sc niainfoTmates
SubWea of tha
Praminatoorn PRonAMMLNC INN C" AD PeRL
Subde o (e I6 MBI 13C
Qvestten Pep
Coe
Dode of tha
bamnadton 28 3 202
MO Gthe
Paars umten
Name h e Canddate
Signaure o¢ the andiale
. AMAR NA4 a.Aangt
Ques I Cive
an
account oh the
following
a)Choaraalevtstre fehuve c langu
b)
Oa nes n c Larg e
nS aChara
cleishc teature ofC Langue
4s a rdhu 34
tn functtons
languim whes teh 3et st boll+
and
ooders Con he uset me
Comple ang
ramn
2)
The CCompller Combines the Caslihos
as9emby langa Tth the Penhure st hgh leval
languak andhare fore t i s wcll Su ted fon writn
33em Softwaves Gn apoioten
many of the Paokgslaact
CCompilers ave lisbe n t a morleak am
en tn
S) progTom itkn
in C
e an etiien
Is t o t4s This
vomtet datanes and po wari
peradeTS
many tmes dhon R4stc .
fow
1ogrom to ncremen*
a a a h le
S oo0 ale J. Prom
34 Se6n C
e it Aakas
ham5 Seconds in Asic
1) theTe aTe
ony 32 ay wodt and s rength les
'n t+s
butl4 n functon s
an nare Sevesr oncbrd
b l4n lthonies onel fonedtons aveilable
C 1s
high ly Portehle hovd wove Indeporsdent
Clangu well Sulded
struaks regormig
huS equrng the 4
USeK h k o4
ap prblam tn m
blocks prepe
Collecton hese blocs
make
Cemplete PTOgram
hrs mlu ler
Pro eSS Srrure mauas
o dew g3my
deskns and matrdanane egge
An othar lmpos
tund teokure Ns
A C
abrl te evkre
proqrem 1s
basically callectto
whrch otunchors
Supported by C
tba Can Conhnuvsy
ddeuY n
tunotrons t C
lihro urhreh
Pgnomminy hsk eastex
andSimple
6 DATA TYPes IN
the
CLANnuaAe
vananles uge in a C
deolaed in he
praram
roream Should
should hre
he
hegning the
dedoretton Speciftes the
PTogrem
program Te
*p odaa
dada tte he
tn th vomable slernd
Hen
To
Speciy oto pe C
6 doa+yas languuge has rrch Set
here onc 3 olasses of
aa gres, 1kaa
O
pimamy Tundo menta dada
teTes
etved do tynes
uSex de ined date
lnas
OFunda mened No nes
C
Compi lers Suppes 5 fundamand
aly nequ Cint
characlkr c chu
poin
Celeat ), douhle fleons
preeSonloadtny pind Cdoubb)
Gnd vord
D-ta o e
kuqus S12
Stu cho
honsa
unSte ngraRd on Sigud
char
ohe a
t+
16 -12168 Ina
Sho
Stgd 4 6 U nSigud
uns uns a na
Chons t t
n Unsgwe
1galeg ir
+u
3
l u SSnd long
32 UnSr
uh le ed )
Te Douhlea
Derst va oda ypes:
Vetaynes hot a x aye from
nmm
daa tyras ed ert uad
Gre
dad s
cdd Soma funattenu Iry
C two detved a ynes are
Amay and pointers
ATay
*Tray Cetlecton af vaa.hles f Sama p e ur
ane SHered in ohtaqtovS men allocceto n
ej n4a Cio]
chox chi CieJ
PoinleT * l+ ts a
Speste vamehl hue
ho s a
mamo addess o a tw vaahle.
210
nt J;
J i
he re j is a
intex Poex as t hels an
ddress on tade anahle
arguay
CTanguage 9appurte aahrre vre
4 pe defrnihorn
(den fr(verv
The
The usev deftned dado daedderv
yeef
dd on
Aru n
Laranros
ns An
aa s on
tred s2e Calechre
od th Came Jaa
ec I+ s imply
ike- r e dada
1 s Sinpl Largre
any da iyes
LIS+ 0 employ n Qn
an adun
E
Sola CioJ
Can vefev tndtviduul 9laeS w n
numher
lled tnde o) Sub Stp n
ocht
Ae n m
Sho wn abeve
we Cun ue arras
renesen
Its4 4 voves but als
dimenSIonS
)one tmn siona
ornma
2)Two dimen
Sten o aTra
1 Mul 41 men
91anu oma
One men
gtona Anay
list ot iews Can he 3ten ne yorrta hlc nams
ny one
an Such vaiahle
ne
imen So nad oraly
Coluloe
avera*
X The SuhscTipted Vantable X k rales
elemen4
ln C
sSingl Sub se Qed aahle
Cun he e<preSsed as
C17, v CZ,
Es 3,
Tho Sub S«pt af on
Cun
Constan in4ege Uuthle3
s,
k L G e»ecs ron udu
emees
i l d s trdeu.
s3
Cem
9oup Ce3
hos n oa(ie].
. t.i
t A
ampl me nthal\ 2atton
Tue YYy-name s11e
iAo 4 odns
an TYAYs
a - inam vaiaH hen
dasomed
un me Initialtatton
An ara Can he erplicty
Initalie
fen Co, feia0 1 L
Sum 0.0
else
Sum 1) to
Tne ls 5 elemanis oFha Cm >um am
i'ntHalimed te zero whrle e m aini
.o at
Tws imonsional «T
There Ca be
Sutdonc
e be Store
Cons tev
thalawylada dechle uwel SA u
Solas L ik e
Sale inS
Loo
3 Lo
1
thnk twisthle
3 cdomms
C allows us o
NahnaSot such dahes emS
y 2 Jimenstans amS
eHe aboua Caun he
sed n Cas
TPe c m y - num CKow Si2 telornn- S2e
Iniae we iman sion
may he tnitaltn hy (twy th
wTh de
as ndd Uevas toeta
enclo Se n
raas
Int table C2 C33 6,0, t, ,1,1
lu le CaJ 3J
(lo0/0; 1,
19
ySamoundiny tu el
s
hyhraons C s
2
Shown e low
nt tohle C C3J -
Nu1i dtmen Stonu
anra
Callows array Gf More
than 3 more
dimanstenS
The exct mit ts dekr
mine hy
Tm ot muti
Comprer e
zaand
dimens ton
TJP enag -name UeJ 7
whame s tha Si2 646fthe
te
imenStan
(la)
nPp
e o doful en
the (tleuteny
Dope s
Reulov msston pe ve leYS
Ans Data types
Thedlm Aype 4 pe ave Sealors ghsn
Hashes Cassectatr amays
an ly hds de
ScalT Ths 's Uan ahe whch
Cn e decere Se
n um hen lee ta .2 Gov
a St9n in frend + th uamahle
dala hy St S n g
h ames, (ik &AmAn Thre
Shring,eidr usin Sirgle 9 uehe G7 uhle gaolec
k . " this Duhle quoted crins have lena k d
SAmngs Jce
(on shruct meanin
ncwli
Rem
tab
FunmotHe
VantcalA«5
(A
e Cs ape
ocal AS ca elue
AasS They aye wared r Semlor dda
4has names Justl ke Sea eded have
'nittal chovace a lts4, me, Sun
Aoole
Jen.cen (1,L, ple,3,4)
emp Jnsern) (1, nsen
lengtn ncen
hlinYalr cnath
cam Scoy length
a0pke Lt d
Stemp: apple L
ppeeg -© Jensen 3J
APple Cs whaap"
arelso heu
exic fw fon cttons Thus CLn mst
an anray
Posh appe naadelnu":
last element pop ppb);
unSh f Pple `l new ftrsh - elenus))
Arst elemunt sh¢+ apple ))
Sovtlis+> SorHa<ppe);
chomp C klm)
2
DAsse ctotte Aran t1s st Senler de
Gn 1Ad- nde e e a t h elernaret
Thes ar uSe S
S1n as tntt chom 1 /.
bts trarme
( Requlon xpess tons speve
ton s
ujels Ftnd ptkn
n
Sng s
CDmorchBn
SuhsHhstten an d
Oans btten
th
matehrny toton useas
seass hAins
pencdev which Cualuas t
ri
olwe
Sh Suhs ftuttan
Se$ s
Ses
S1Swcran
an rans latten uSeSS t (spevoen.
Peo
s ollowiny
es 8 ive an a
Ccou
S
aSiC aerotton:S evoter
SubSub roufineS t h n e t t c apercelers
ssignmant epe rters
percaeTS nCemard ereminA pe
astC
humamc Com sI
SAmn ComrS1on
penees.
mths cealkue
6perderS USe 7efe rm
Ath mette
Can l4 he uSe +o Cambi
tha numhes., hut
foncthon
operade
Addhon
~ve nums una napdto
Subtratan,
MultpkcoAto n
Dt stn
Mouls
ponudt
Assianmend epeveto uged to assiqn e luas
Uahle d dencte b
Sign
revenue 6
pereten functtan
OTm a9s1 qnmucr
Add
Suhhad->
multly an
Divde
modulus
Exopen*
Incremend geeremand operaer Os to incrnut e e
decremt tunatan s nama im ' e 3
Srevenuet+
Gperetn functton
nvemaut Ced 1)
Deeeu4 Shseot)
Ading hmn Se o Concaenates tuwo s a s
es +Pful- Shmg lignd
lignd h o u Se '
Tws
Tus malie
fuSAm ha vele isthuge
Consscnate S4
Can Calenceke an Assisn.
numen'c Com paTSion Campoc numbe hot ot Sinas
(1
perator fnctron
quato
a t eq 4o
avocer than
le se than
vaev han cqu t
ess than av cqual k
StmaY Compa Ston
peotos n hon
eq equ to
Aot e q l to
ter tu
ess than
ge naxahr than o-
cq uul
e ess than G eq uwl +
Lon 6pcae T o Chack n
Logta Cnt-
pematee onctton
No1
) S b euiere S
Ct he at tene
SanRo
eple to.s ta derv ta
Synla
Sub Youtnsnama
SLaemrts
Rtuni ng volues
Cau so etos v
abay r ceta
on ron
wa aray 2
Ca,b, c) G
aSSinG Volaud 1 Cau sotrg E
nehle
+ CA e
noSse hs hS
Suh voutt
COues
we a Sutube p orom,eplan ho li ny GC fles n
Clanqua
CToq om Yed namc motk s
G nn umhey o4Students and han n
Cile
4Incluee <s+dta h
void maln
Chov ncanma SoJ
'nd mer k S,
,nm)
ntt Ee the nama sf Suden
Scan ().d, Snum
Fpt Cfopen C'c: u Stusdent txt ))
CtphY nul1
prctf ("emoY"
exit C);
fov 20 i< num +i)
pinfC oT SHusend . «\n Eneer name
Sanf )
C"-/S" name);
I
Pmnt(" Ehk roen
Soun ydA mmus)
elee Cephr
akurnt