0 ratings0% found this document useful (0 votes) 57 views15 pagesDetailed Solution of C Programming Unit 1st Assignment
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Ahe_bagie. chashen of atypia sia gars —_
Bee SE kas tt sony te. xead , modify, dacument._and. 2
—endvustend tna pantioubent: ested 2 C. Sf ae
—1—Fertmo ane _\oelniua— nen Wtnned geht Oudline iiselorder te
tes Sustess isis —Lompiie and 212 cute Deuaaing, iis easier © ae
fF i
ections 0% © Progam -_
There sre _6 _basic_sect’ns sresponathie Per Proper —__]
execution, eft ae = aieBi ee _tt_givs an _overvitw ts bine wieadlen of ogeom —
gah Pre puscessar Seton! All_are head ‘es ping som us| be — +
= ‘declared_jn the prepmoce sor .secchon of p.vomsein. S ede $la—
—=_fiolp ud ta acre otters Imparavedl Code into aux Code. ____}__
_ Suthers fuer?) copy of ice —puiktple — piles i. eee oe
at _a0e before =the _psrocen. of, tompila-tten 2
ath ES et - —
_ eee Feincludec stafon b>
—__s#F include 2 matin >
le nerisiaient= tre grmcenan anesthe Qauigimar ant pment
eee. __pora_source tote pear? she. grocers: of Campi lati en SThere |
—______oxe__mu\Nige S429) anlniela _oute fevalved 7 ee
Sete iitian ah fataniem Leeann v ae el
— |) sith the > aymbel. Aine Ede ne premmcemor ia wed fs |
——_______Crreate _o __cambstont _Soemuginaid— Ne Qin sprema —_\Winene vey _|__
pm | sea spame th enrowareed Soy doe _caraghle,, WW
_ ae — Octo giece of deed code
Bhs
SHE de fe, a
le. a ong, ah 1 —+—
ocean hs (omni dint ae
na —fecetin\_acsiera Nn cents etd btext
ete cate cae espnc timesheets ita Bis hor ar oa
7 —pecagnonn 9
= i tt nom = 18 5 fi
= bet tn an
eanand _execurton axe performed inside the curity braces
Lain prograr, “The rakudit Wee of snail) Ruinelon can be
Sasa \ Nova tee: Noid Vmait arenas She Compiler
atin
Ane Qrosryam _-\\\_ not rekorn any naive. We
Nokmain 1 ett ane conn pilecctinak ne Gragram sill
RON an Sokeaer Na\ue,
Nofd ain C)
ox
wote_enatn_C)
£9 Sup Reograms 2 Vser- dedined Runes one called in Shy
SecKon_ef the _program. “Whe — cotanl_.of ¢ueSram 23
Shiptel tothe called function whenever: Ahey ove called Pxem
=he_rnain_os_owtside the main) Poncuer. etneye ace
Specified as pec ine vequixements of, tne _pstay sermengye
—_int_som(int 2, int y)
ret FY 5
S-rructune of C Progrom with example,
exi_Belmi _C_guogriam toad she pum of <2 Mumbei
—_ LL Documencte tion
Vial gate,
* filet sun. Cc: ,
* author + you 2
a TERoe Fad. 8
2 deserigXiudt rogram. ro Rind. Sumi,.
*
sp ew
H-inolude. te I De Bint Pr |
SE de Pine X 20 gs lll
Falta Geelasa a ate 2g
——— into (inky, ete A =
—— + th Main) ain z
——.—— int main (Void } 2 Jus
> LL er >a
——}—_—_int y=so, a =
oes print Mgpi 8 %od™ Sum YI bee
xed 0 4
L % z als ps i "
[as Lf Sipe oga ath a oe =
5
$ : = parietal
—retun yt X's
CLs\ ———_
Page No, )
08) Hetlsets can cyente thefy oun fonesions and a Anem 40
+02 _¢ \itpraxy tn foram On ie fo
a Language. \ atu meni puted ino} aI, BYTES, and —
Apo RESSES at thes Fei aust n i
— Oe hassa age tMowosuy of huurtetf ons. tne: sppassts =|
———vaniious —Jimetions used tn Parasim. das tred .operactfons,
Ds C_ operaiter-on tne: Same dota Ay pes. oadine corn puter, $0 —
— isthe _ceder need vary thle date conversion, {f at oll
—ta\heve-fire, the codes Generated are _faytiond efficient.
{ea fa da you mem iy com, Unk pee ee
eee ea Ty tones
fr) Compile: ewes ta papi Sat — it
chine etree gpa 2
ra | ~Called) & Sounes
= TEA. ngstem= EA nous _converctedl>fe ce
machine teviel language an Ahi $maon O35 the
lee Coole.)
paleo ent
ht SThe proces of tompf ling tode i Frveles_severad steps. Basics
ib
eter “ond Compile 4
Shot on moto g73 5G
EU’——Theie_axe_folteuning eps tuhich ase ‘lice eg —
ste itpmptling, - ea
———_1+ Lexical. Analyste ee |
— +The neue code th fiat tested by the scomp Flor ]
matte orenita thu. Souver |code fata to ens. such ai |
—Keywnrds, “folenti piers, opetiatavs ond. Punetuctton. ae |
Egil Intex Anolustate Lh bd hl se
“The nest Step “1s. synter on oly Xfs,.ushene the compfewi,
+_PQHSO checks the Code fay AynioxeMwaye onc ensuiies
[elle oe iter et Petunia — tho serrtes. of the Polagsormming _
ET —slsnguage ~The _comftle:_genevetes_an Abstvect Symtox
paiionT ree “LAST hak — ep rthents tha = Atsuletiine esa
the ede. ‘ cow a
s Semen te Arnalijals t
CERTPage No|
Hiner 144 fuce gate in_a_suakem- qbatiteh helps
vio Link_okjedt madsales.o4O._pstoq.som into @
xing e_obf ect ile. Uaapes anda etic Ig Cea =.
Looe fee shinking i. Link ote abo called oA Link editors
ae Linking Disa poco -of-tallgstag ond taindathing pete —— i
= Sh “trde ond deta _fido_o_Afagle of fle ——__—
Lenker also hints a pordteulay mo olute fete Aystem. oe
—Ubsisy. Ut dates op ject moduler ae assemble as __]
_—_faput “omol sfaxms _an_ex:
| the __padex. Linking la ponfarmed! ‘pla aleaterga Hime,
__|_wthen the Souree endef. 4ranslated _inte_machine cade —
et ond toad _time when Ane _puejnamt tr loaded into _
1 | nemnniy ty the ‘toaden. 1 fAaking 1a purfwntned ab the last
Step in _tamp ili 0 pt enptem,
| }\_source cade —> compiler > Asseubineay Object cede —> Lin
Executable fire > Loader
The —_Ifnken takes the tode and clacta._Aections + cope
Pale git ond -mengacthohutne the « Code nel date
ese oe ey ne
Sear
Cena lis—j —~
mesa} fisegumronsnoit tt eae =
esas Pre prpeesansf hue pooner Cay
the pumstta_tode peptic onmp flection —A_tuimbes of
steph asio fnvolved Batu ulsabtig 0 pstscan od
a eitetunking a pitt tn Qf cris
=~ Di at = a a
i Pres RRS a cats nts aa
iD ie Sorte cede = = 2
Fait a a eapemesi Wovuatvay ol qitaat thay Sa"
rer ee
~ Rrepecessn Sy > Earp} er} SS
Directives $< i
Yes S 2
[Pre-trocessee ferform Beaton se
Hew foe poineessoo twang tet
eee —B Lnegto corer ootiqhy, —paratyons -nsipn ‘ “ai
a MLL cede! - oti |
1s Remmousng_termm ents is
ST EEG
OMe carlfof tha [tboroy —$Fle Spect fied. asi
1S. Mann expansion?
Macno’ Can. ber Called as. Amal function —
that exe neta» Overhead to ptaten. 4 vue howe to
suwate a _funotion (_houwny a Amall_olepinttfon) thoT-
Need& fo be _cdulleas wecursively (agate Cregqamn) Then
Wwe __S)hov\d_prxrekey a _ many ower ae
Lwute a note on _fdentifi'on_ f- Kuan, ai _
| Tleust RAS ta
IRCSraes Tac proy.somi Bs 1, fderdfitns ieee
a= building blocks Saas nage -. Tolentfious are
eal nique ames that axe _WAfoned to vantoles Ades, —
—______fune-ten, cand .other i endtttfes oo Naaapucdore Ueda’
penn antguely—Hdenty she a ersten
1) An fs Hie com include tette Ca-zor i fle) ond diguts |
—_ TT RY eee: ) ere
£2) An identi fis Cont include. special chaxeictens eterpt the
ee 6 pndetAcnre. 2
3) asiesmpts allsuied vahile aaring, an. Adenstfter._ eee |
——_@)|_ Spares
——p__Pin_identiSier can only begin _ysitth omiundeySteve or letters, |
che. ‘ident fier mush ein nee in its nemespace,
1 C slongtiage. 14 care-Aensitie do, ‘name’ & NAME? axe diene
Teen iors, =at Keyanndat —— ? '
—S_Keynanda ene pred fies
se Shot a “pected menn teeter T :
Theatr poset of the yyincter —onal_oon!t bet ££.
a Fidentia fn tho prt tor zx
(eve tn the List of Keyroorda t=
Th aha ae a ete aS
ete es | ~ouagister ___aahile, __dyuble___sfongy__Ma fe —_____| _#
Cena site Goto ruc Nigtetfle Sti |
else. toninue i’ _-Unron- Atze of suatteh a(Page No.
“aa een na i in he iid
Bel machtag .
ze 4.3 = Pinas a =|
tl we si & ase freshin og pt sade ata a
oo) ha “este. opts, page EP
—— = = sae A double. ee it + fing in vlit—
Baw 5 agpgier-
fle __Reprerents os opsence of type
eta Spey aie Sane ere ee a
Sak, Hisar! ond double ond! arsigns Anetanse—svalise __
i wHie__ynese — yortabler
ermeeeredscecaiden > a
| v eM sy ‘ 4
ine nom oes Heian
| Floosknon= = 32H Poot ie eee
. ble mum 34
ie mown 3 3 =
ESTecurlsLets of mally 6 tyyen i=
eta ptenadec _ts-0_numertc_tonsdant gutthautt
_fuoctienal ox expusimented post, Ahers
eo pane integer ajbublLondtont—_oset tL) ______}
ee © Decimad Canstant il ect
(2) Oo) _tomstont —
pe He to clee time!) tem sfant
ee roe 23. 5S 2 Gra re a
fart eg Oe it Real 7: Sz?
US String oonadaat
[eis Ach of Ne ers
arte. crcl ae ———— March x—— | 4, enum enter Loyreen_ayaittrs’} _ Herre tele _yy_xanierble
pal ond grem s\e\lns a1@ ss ehuradcetion Lonstants. a
E tt Nalvel_2t1o_and one __vaypeckiuely ,
| @rs_ Dixcus Contept _of sypeeany 7
aaa | ypecaning in tothe _fO{DeR A Unnu.orting one doe
——rype_to _omntionr_dadey Geo by -tne Om orairnmne using =
[the casting operate Awan 4 09 49m _de4fgn —______—
e— Ia Aypecasting , ane derrina ion _dota type may be—
—__Amailtr_than_ 42 Sovxce aaka Aspe wonen _ oe
the _dota._dype to _cmotran’ locke type, nod _uthy— al
ty dae Called _navo-enusing = —
Syntaxt. ae —_
ee aint itty, put ii
Nie Pee Ett At at) eit apenas
. + y> Coot) i204
1 SRipe_ofWyge- x dad salt a peg etn HE
——___W32_Courking _prnceay = —
eee eaolicix “Wie axing, — a
—_—_-st_Biplicit “Wye Condings coer y 9
-f— D. Toylisth Type Coating. Udall npaitisshy Uaada yn |
—— aetna Das neg lies
age spake dodge sts et
“=
“aw Senor ce oeplo dtd 005¢:<_—sataalll ea eee
oo sroneted old dg pest a nelie. |
FT oistsfon_ 0. and _ ey
et aS a — =i a
eae | Print ("ne veduth ts Xn" bien eae |
miter cee A i?
a ae a= +f or
in. <._gr0s; gpamining, ears yaa pogrom ver Ua
ae or MOR cc Hievar che, aye Some J
Reade, We can talce advantage af an Sa
oe Set yee CN ae ee
+ | Bipe coating Waifs Programmes +9_tenw wos Meee
| ge is SnOAWer ee — oe
Shot on moto g73