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

module 5 (c programming)

The document appears to be a fragmented and poorly formatted text related to programming concepts, including syntax for defining variables, functions, and structures in a programming language. It includes examples of code snippets and explanations of data types and memory allocation. The overall content seems to focus on programming principles and examples, but is difficult to interpret due to its disorganized presentation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

module 5 (c programming)

The document appears to be a fragmented and poorly formatted text related to programming concepts, including syntax for defining variables, functions, and structures in a programming language. It includes examples of code snippets and explanations of data types and memory allocation. The overall content seems to focus on programming principles and examples, but is difficult to interpret due to its disorganized presentation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Moctule: s

anl
hointy oye deelyed
hointiy. tlouo the
+lou thu
iniliali rd'? Explaiy ucty a duilab
anol
Ecamle. Goriable thot oytaiys the
a aLl able
adolres
Peintey oslayalioy and mtialiyaiy.
Pointe ouclaliyi
ponte.
Syntax;
-

hoyPfnwm '
# imuole <tolieh

kmtny,* prum;

Paintt(eln enly he rumbey :);


Bcant( y . , 4 num ) j
Paintt(ln che numby thot woes enleged io i/d

3
Sniteaigahay i
focs sgning y aaoles to he inly
Examye: ta 103
ant Pi
P:4a;

Puoyramy to olemoyaty att poibo.


# nude <tolie. h

int a =S*P;
P=4a'
Printtl a7. dna);
Print t(c4 a /d|n', 4a);
Pintdl p / dln"P);
farmtt ('"4p =Vdln"4 p)

2.2lop agdajol ctati oy


th &uy, meay and st mel numbys.

& luole< mathh s


imt maim ()

lont C20] BAm,an i


(lont Uanianee, alln
Peimtt (i Enley thi uaies ag n]n);
BLantY.d", 4 n)j
.n)
Print t (re Enly %d ual va iesln
son t("/.d', 4 n)}
ko'-c; <n, i ++)
&can("/. 4", ( ti) ;

Itt)
)3
Sum Sumt*(a +
Paint ('Sem7+In', Ren)
Sum n

man)* ('(I+)-ma);
3g Suny("(*+4) -
Salable Sy/n;
vancabl))
devtat 4y 84rt( =y. t{n",mean);
Pintt("uau(ahyage ance)3
/ tIn", 19at d ialon)
Printt(" barance olaloy y. f\n
+C"SA aydoyd
Palnt

Ihe

g9

mian (Aae)
|399 -836t 99
Skandayd dwtaliy
3. Dfinc a
e ayd ig.taliyi styuetuye wantabe
Ex plaiM uity sidable. caamle.
a

ulald sntojaaliy tigty


e
ay Contaiys nelabed infonMaly4 soy

Stguztge dulyatoyi
fotloocd by a skyctye
SLquct

Synta 2
Stuct- student
tstuet atyutye nanye
9ol tbye Gay- naye; chosy naye L20];

steluye tb duo1, Rud 2


dntoa
Selye mualyabout
peimt y
Syotem.
y uet cutomiy
St u t point

Chay name C20] ;

kong
d'nt poB
(294

nitialing a styclemays auignng Soye


Cystans tohe memb yo cte

auubyati caly does hot. fo


G inlraljed t zo
walwes aye
aud glrat ninbys, the
tLe 'lo' by difault.
Syntar1
Stuet syut-Mame
-name];
Aata-ty re mimbey

al- tye mmby - name 33


B
Comteut 2, Coytat3....
- iay:Coutant 1 ,
3 Aeyuct
Enamle

name [2],
c o e[2o];

reRalul'BCA'. 13oouf
styutes to cte and
qead uystucyts
G), Smlment
auase-mayis ayd e
Comyte ayd beloo the cyaye orts
aboe
6himq clas N AEdnts

mami [io]
MI,mM2, 3
Kloat
flent (3)

ínt n, ,
7lont tavg , Sum 0-0;
PainttEnt the nwmb) stuclimt =la"))
Sa1t("/di n);

Pumtt (" Entey oelell d stucnts|a', tts)%,

te) (tz0; teq ; Ctt)

toy (a=o, f<n; itt)


USN ="

faint t ("/n Enly Name "


SC] name)
scant (" %s", sCe) 3eln"
thre subjet
Pintt(" enty the
M2 t SC] M33
SCJ: M.
sr)- M1 rt S[i]
st) tet al

Peintt( ) n/s dhas ogd aboue the abtage naks


()

s)yc)

S.
stoage meruoy

1 Coole seg met


P o e - stco che comyled gachiye coole
pogram.
Chayaluug
Coytays Lhe ogram's exeeutas le iagatyuchys
Juad -only to esent aidntal
7yhicaly
oolifcolioy.
to saue memey.
Peogmany
9ata seq mint .
s taia sataLls
.

slwu qlbbal and


and
Puyse

Chayacte<al ey -

ndirej eod Pat iq ment : fe vatalsle uiZG


E plicct nilial walse
’nyid alized Patt seqnmti- Foj Glotal/
Let wnint'aliycd
beyoy aasstets A
y ctfnt
buy
ments
to
meny Fee (G)
Possible uqityst cpu th
this). ne y
gptlomilys melem
keywnd
characleialics ’
Reqnty? (5)
k. theCompardot iy
dize dimitrd
utis ayd Callo
ut(LIFo) fiyat y, lont elganed
aiy *
addses uwy ayd -menti
tyty 8Bak (4)
manua meang
ed
ramm
realLoc
), Colloc
0, C)malloc
, memey ike
(). e and
fued aydllaold is
(haacteuies -
taap 3
(6) unite a G goy to yod ard
Names N SAuou nt4 a clos

t mclucle < std ibhs

(heynames
Peint t (" Endyche numby aluc nts :")3
Scant( "/d', 4 n))
ames: (Chey )atlbr (nt eycchoy"));
Ace)
Paintt (" nemoy allocalylal led !1n"))

namer] : (Chay) meloe (1eot ize (Chan))


Cname [a) == elI)
uimt tC" meney allocely ailed!|n)
3
reintt("Enly the name f ludnt .d:", It1);
names[]))

Peintt ("lnanes the tuclett:)n;

Peint t (/.s\n", namesI J ) :


tue (namesCJ);
3
hueCnames),

3
oulkut?
Enly tte numby o Aluclent: 3
n an
Preetham,
nane Chitya
nou lu ou nt 3: Suthitya
Name the sludnti.
PlLetham
Chilya
Suchitra.

You might also like