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

OOSD Unit-4 Notes

Oosd unit 4 notes

Uploaded by

harshharshgopal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
9 views

OOSD Unit-4 Notes

Oosd unit 4 notes

Uploaded by

harshharshgopal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
VY) Beamer kon Nie Secs Gansta, OF ae descrip of gee teem oh he Renee (eee 4 Pacacars / Craearion jake ond Bre of Yeo progres - XK Me Akard of Me os oe ese apectied o of Comment - as t- nome I} [ Sercsipton , ok Meo program, Preqiammes A , dake , dime eke. ho 2) Pre processor Secon esder Kier of dee progren eworith be Aw we declored iW we Aa pa OC eSSOD geclno~ of We pro ror Header Pier \necdp ur Ne meeect. o%% inn proved Code iwko or Code +h include H Mrcluda Crewe: h> 3. be&urkon Rreprocessorn are Me regres Mak process our Aovace Cohe Woeforie se process of Compilalion iwucbved Kn Tere cre malWiphe ale pa Which arc Ye wrriltq and erxcecudion of sre progqiom. Preprocessor direckwer shoN cite dhe ‘ke’ Ayabel. The # dettne preprocessor ts ured to crcahe o Connors amrouaron’ we anes | # deSne _ Song 8 4. Choloal Becharaon We adoload dechoraton Vetelober , Sanckion decLarodion , ond AnNc Vvarobles Verobles ank Rinckoms WWdh ove declacd Ww ais Scope Can be used onytdoere Wh kre progenm- inh nem = 18; Bete Coteie aisha) S. mon O) Foncddior Every C programs musk eve A mat Function. The rain 6) Runckven of the (aor ts corttken th opercdios Luke decharaktar and perkoramed side Khe oH lnaces Te selvon hype 58 whe wis Aecion - execution ane of see Woke main OF fencton Con be teh om woclk ay woth tno hes dhe Comper Yrok she program valve. The dik wath Oy Selis GAM nedvan an OF LOW . YAO maren Lat nok dehvan ony me Con pier Brak dre prograre We ene Velie - Voi mois CY 6 Sur treqners User LaQmed Ranchos one Colled te Wis Beco, of are Program LRe Coukach of we prsgren \s Aked bo Re Ged Sivckion Chenever Whey ore Catted Lrom tne ovkside Me moincy Lawclton - These ore remds of Mee [rogue es - WS Go Gk | 4D 5 ae ApecRed an per we Key prrain| — peluan *K*Y!} 5 Nowe apace A nameangace Wa dAcchealve Aegion Mok pacvidies a AcoRpe ko We Taer Ger (me namer of wyper , Sanedvens , vatobles , eke ) Wstke LA. Nome dpacer axe Used +o ongetze Core wr Senge’ Qneupa and he preven veme Coliatons Mak Con occur especiolly | when yeu (ose Gane Wiel Soe maddiede ian ee TirewGer oe ee used Xo env hy lo wanckde , Sevres, CST I me duke on ony ome user dSeGued Wer Pe tdeninten Akooks pas Nee Fe 2 oe ee oidettcane — Lonorsed lay Zere on wrone Jelrerr ) LrderStorer , ond dsanks Lowe A). Cx® does wok adle ro punckiction Ororacker Auch ar @ , &, ork polwin Verrier. Crt is aw Gre Aen AVRVe progremening, Sanguege Vawiabrer Neotothes oie Coveiud’ Sn Abeutta dike Te Cae, Mere are AiCkerenk q Valued Kren of Varioblea CadeRnedi wrth dd KKerenk Meso ads, > , Soo example — irr Stoner Wiheserr Culole numba) ~y Acoulle hora fhoaNng, ford number nud on 1a? = char Shores Favabe droracker , Auch ar a’ oy VQ) . horn Labora ore AUdomded by Penghe A ay aehos . oe oi Nese 10d oe fF ello ON Sy oan Valber are AVrLOLUWded toy doukle qyrokes <3 hemk Glens Solus tol Sere Aboden + ee oe Tce. Conshowss _ Consteards refer to fixed valves Mab She freqiany mony moh ofkexn and axe GiilcA JiXercks | Comsbords con be of ony of Ine boric date hyper and Ge be Mvided any Ynhkeger Komeals , floak.s Pow nowket , charachers , dhainga ad boolean Sales. 3 Clica+ pregron we Gn Ae&ne Gustants Wn Ynwo wou or Roun below ) veua H Jekine Preprocessor ieckve 2) vsivg a Gus Kertoord Wkeocdda i the valuer asstaned bo eady Gorntent verbs. woupier one referred to os ave Ga caine: [oetaecesi direckve i- Wie Maeckve WW Lsed to declare an alias Kame for erdctteg Vortob\e oA uel valce . dt Xe Rue Wend MeName valve WerkRewame i TA is de heme given Neo Covnstrouk value t= nis seller bo ony Gales actus Ye (dacnce. oa a Couns keynord Lo Vasobher, 2) Usua a Const kev work = Usi Lele Conrdends is as Menge om definig wre MMtesence repacrentelion fs = G@esk WAN vay XK Conk Ink vars Nox) ; Const (nk Vax = S) Bekeu progam Ares home te VSP Gonsk te dedase Eo 8 Se a He icchome 3 Less ston Nod pak to qpecke nee less Sor = gee os oe Loge ad operedooe. ) begica Ants Aa 2) leycad of AN 3) Logical NOT} Rilmwise operators Awd A 5S brary oy Binary oR \ ay Buary moR A 4) Leth swHX <4 s) ork slafh >> $) one’s Comphemens n Assignees’ ope ako y Assignmens operator = 2) ALK and Assignee operedox + = 3B) gubhanck and assignees openers = 4) murs phy ond asstanme operon % = s) Bute ad ossiqurneS eyendon [= Terman, ond Condddionad opercko > Expression b 2 Expression 2 + Ex pressrond ese ae ores Ste Somer operakors avod\able Ln. Cex Weather Se. ooue mentvened operckoos 1) Sreo Operchor 2) Comma operebor 2) o pena + used ko aceesy Me Nartabbern of classed ox Atnucho red: 4) caxx opereko> 3 vsed Xo Cowwerr® one doka Yee wre anole + » JD vsed Xo accesser member of Vawroadler or class objects An S) Dok ope rode Sauchore C++ 6) A opercdor a Used Xo seprcrent Me merrom| WD % operator 9 Trdirechror operokon AdDACRE + Wyre Seis, Tare Caring Ig Mra Process of Conve aype Ae ansiner dake Ayre by ee p one dolan Ko rmnr ed OSes we Corkiv _ epesotos do —\ Prograr design. WN x Soo 4; Ye QroadS x; Tee byes of Lyte Gea GC ) aphkak tee Cars TA As Used Av Grek dhe Lola Ayre of al euiokNe GaWouk Gsm He Gov. Gol Gee de Vadoble Kady TA pefoama Me Comeaend WMmord ake rt any of are Valuer lich oe Skwred GW Me Aorta Variable. Conversion of Looe dokn Ape Se Weer don Ayre WAN occen ouskomadienlty, Lory Double Bouk\e * Sook emsigqned en eS Leng Long Lesiqned a A 7 onsrqned wk 1 Anwk 2) Expbbad “Wpe Cary wwe dora ype ye incorreck oulpur. hnedp Yo qes We Caney wwere ned , Cr Ware ae ane Beran conchae Ta Auch Carer, Ayre canna Ce kpuk ond reduce dha Tr exqghad ape Carding, pwe hore to Loree te Conversion belivect. dela hyper - Go» a is | des Ga. Suc prcgannn- Coreck ee ok Gas, \ Was Lee of iat econ On mre Condivg YY Type cane ih C aa mokers Me ea Ney Bays weiges 2) Tyre ne prererdodi on ond WersrchiesS are Aome Learner Gee Gr tke advondage of aide ane Were of *yre Coding | ) Tyre Gary helps Proqaarrres to Convek one Sars Nee ho an omer dodo Aye - Corkood Shanchonen _ vo Ape Comsnck Axeeckvses we ess oy © Brow of Contaoh in proqaam. Go~ be ere clean oS ecdensinod AOL Condeined modes Called os DN ey Ones a pons Cottey analyzes mw colich LineeMor A progtar flows . Thee On Rn ee So use Jegic on Cork cheese’ and Cede Poramcheats od Conddikiors bared on one wee Seon Lares of Jogic , on flow of Colts 1) Seqpence dogie dB) Selection doyve er Cords Horak B) Thesadion Legic orn rcpeditve fiow on Sequentsad a ews Titine FanckkionS Tabine Sumcktion is a Simeon wnak ts expanded Ww Mee when Wits Called . when Me j fumckion is Called whole Gade of ane fuaneon ges wWserted orn AvbAW ved ad Ye Poink of wWdine Linckon Cal. Synkex Ae inkine sedvon oye Ramedss i UY Siancion Coda t On—name ( parcamehers) UW is also Giled Prepac cessor Aoeckwe . Te macace are SeGred by whe H defne Keqerord . Before We Parca rare Compilodon , Me Preprocessor Examines the oe dhenever Me Preprocessor dAckecds me macros her Prefroceston Jeflaces Me Macao by the macro dcknitin. te dehre MACROL NAME Macao — def, DiCfererce belween en Mre ard macros QW Crt Taine Macro ) AK wdine Kanckvon is tN) whesean Me Macros deGued by we Wne ore AecBured by ee Menus ord: +H dene Kerevord : BD Thoouak Whine fanckas 2) Evesear macars Ye choes dokn membas Gik access Mme chasis Ca. be accessed. Ack merbor. BV om. Me Gave of Wine Jandton , See pregeten @n be coy debugned. 4) In me care of Wine, MWe agquments are evaluaked ony omce . SY Toca, inbwre wey be Aelv ck etme. Gets te class on ovtside ane class. dwst&e Mee class, wn Lancto Os coe : Me Aboot 1 ore audtowradicall iWhne funckions 7 wate i Hoh ay Grdeduy LSEH OS Macros. 8) wade is wed veed in Compe SANE Progsarenting a) sAdane Suanckiom is femwvedred fey tre ay ak we end. lonace of wmacne mode ne 3) ek GX be therear Wm She Gia 7 he eam Macros [roqaan { Pebeaned 4) whereas th whe Ye Cone, monks o Mme evaluated eve dime whenever macro WW Me Prcgqnan, WS Used S) Gheenrs Wo nacre Ws oa te Me dehred ak Me Sse, of We Ulam 6) while Me macros ‘s mpe dRealby defrea, FA whbide dhe macro ts Cidade used. 8) while Me macre is oi muck vsed Cornpe ve pro Toe Ww Q) edie Me mace is Kot hermineked boy ol Arynbol pik os demninededt by a Keo Sve: Bales Amoeiends A aAeXaw\ argumen’ is a Nabse provided ia | Ancien Xecdoradtar Sra is andomadicalty | assigned by dhe Compiler (2 me cating Sunchton Acer wok Provide a Vale fon We etn fy Gace any Nolue is passed, Me defatk value AS overridden . Il cre Proguan te Aeronabante beled Agquments He ivclude Ciosuream > oa Mamespace Sd; lla Roe Ge ER anguments Wie Gx be Ged GOR : I 2 arqamerdts 22 3 agamrerds on HW aqumente RA SR C&A *, WHY, WE 2-20, WH We O > Hassiguiy dehary 1 perusn Cxe Qe wy; 4 I drew Code (Ad moin O) aikeuks i MU Qwrxemenrk 4 ce Cark << gumnio, (8) co endl} se U xrodemen® 2 Cor << Sn Clo, 16, 2S) Ze end VY W Sodxemend 3 Coss << som Clo ,18, 28,30 ) bosv Namespace AVA 7 oo tere | tUblee 4 Vinsead Volk Y Cox CSC Q tries cy “eo sok Vows oe Verda Arow 65 5 Covx 22" eho bare on 7 4 a sk bare } Poblic + od te cs § Cok Zo "pained Seawed claw Sc Meta Rew O t Cox 2c * Ahow Qos ee {Res wate © u boxe * Lpr> 5 Sa ciek Oc) lopxx = A oS [Ph Gyrrrod Siewedtan , winded ee Lbpks > pares 63) iene Ih wow Vintwok & » " H 9 praak Svalton / binded al Conpile Lp - > ae ©, nwnelwan OF Oe’ Prd Acatved claw Qheuw- bare c\erS

You might also like