Sie sind auf Seite 1von 28
Pr _- ASSIGNMENT ~OHRETER = 02 py lain types of cperators ; precedence and is gciativily wilh “example pregraromnes . alos" An epentor ie a special gyrobol thal | ie used! to Peforn operation. , gf Geto: | |. Pat hrratic gperators . + | 9, Unny operatns C++,-~) ' 4 Assignnrent gperatons CH=) -=) R=, [x Ae) y. Rebtioral eperatoy (==, 1=, 6,25, 2eP5) 5. Logical operatoy ( wel, Il, I) 6. Size of Spercator. 1 Shif operator (>>, <2) : conditional operator C2, *) 1 Aritheratic operotor “The anthernatre perators . poforns rralteratrcal opeations like abditon, dubbaction, multiplication , division ; modelo division. Hinclude void main ¢) Q int 0=9, b-4, Cj c= ath [Biotf (“ arb= 7d \n",<); 3 er by punt ( cathy | puny (% aXb ee) i pvip (0b dW" Oi habe 2A OF end ni" Oj ce onbi oi pind (fb = yd" \3 gut pat © Fasb= 13 a-be 5 | aad © 36 \a/b=2 Jazb=4 ta Urtay Qpertor i= Gronrend 15 oenses the Yoke by “1? uibere as Lewnment “#5 cecrrases the value by “1° \ 4 inclutee stelio-h > void rain © t int 4200} pootf( aet 1S ta WW", a44); pint (Sasx 15 rd \n") +40); [pintg( Sa is rdw", %--); gin hoon is td") ~-x); att Mors Hl prints before tecsevented value ax areers it pynls Gfley inewmente value ae~ means iL priPks befor ceererrentel value jax nncans ik psinks Ofter decremented value sl sSgnrcent Opovater - Jat is usd for assigning valves to the vomable: latinckecle< sidio-h> void rain ) ink A210 ~bes ; atsb; . ptf a-*b; rink C daseud i" 1 Oy 5 culpa 15 10 ote kd Vn", a) cnlkebalenal epoaler ee atral pole Don pagmnter openers bt eh vetenns 1? ots eeise Ht ehirng', Hinckuhee stclioh > checks Moe rehibery chips oy We sehr 4g yea mained ~ f inl 3, be 5, CPt} Jonny (hate = td 9Y LAND, ,b Moby, prinl{ CS td = had FS PANG Oe A= =e);, i : culpet Boosts} B 4-180 collegial Opeator cittey '0" ov Lregicol qpevators elenns ven cakethey the an expaession “resell ue ov fale 1 jpclade € stcl0 b> ‘maine? Inbacs phos, cote , vesull j result © (a> -b) ef C@>bD; printf C8 yd Ww vesalt) 5 aesull = CG VbdNCC>b)? pest Harb), — pnlt© "Za", vest); zi coulpat 1 ) | 2 aq Tenveny Opsraton ss also Known as conditeral opevater « ZF ts fue then te ecahrates (fist expressic oA expression: ‘his: cenchlicn ether esis ta “condition ) 7 Cenprssion!) + Cexpression 2) 5 thinchcke © stelio sh > void main 7 grt a-20 pb= 20, 2¢8ull ; pesutl = carob) 2 Carb): CO-b75 pintd C%nesall = nd” ¢ result; CU rd Any pesult ds on saesk * actors the Size of veniabk. itt nue esto“h? void maine) Me ac%i \chov be 8; bo | prot f (sie 4 7 poets (sae bya", j wud \") sae of (0), size of (6); Sie f 227 a bytes : q te Sine of 61 sap pirat i se of the ohgt of the ‘ther lgt 7 % t sole ° es ’ Precechnce Operators Aasosciatvity - Letinchde< ste osh> , 0,0) lst te ght rain) 2 thon aaght to lett ‘nt rumbe 3 a lit sett to aight = 28 . 4 fie sagt te right rk «mumbo 2} , xh pant (% tan", uber); 5 Lop tele 0 ght rorsloey « nunrbey >>2 5 6 22/2 el toaght lett (824, number); 7 cs, ls sgt Fo aight (aga : Biuise wl)! deel (0 ight | $ 4 logit ta gt aight Lo logteal tl let to aight pras, Predlnee * rctne —delomy which cpoakon $5 perferntd jst yp, a woth mon Hal ow gpraor wit, chypant Pr prectekrce Gy 10 4204 > Was00 - eo eh Loopy a fearypecchee iter preachnce 1p 120 ¥30 PE calculated ag 10+ (20430) but not (10420) #30. Assosciativity When too qperalers of seme prevecerce appear fh an expression Hin the assosciabvity cn be performed eilter Ife ta . sight, o Ryrt to kf. _ watiggs (arr ceratteral 25 LY fo vignp p assign eile re ait to | B Sporator cor) def bo vvgne. Hinkel cstdionh> | moin | tot a=20, B7// 07/5 d=5, @} ez (ath) 10/4. Ipintf(° ya "'re ez carb) te) 1d lpintg (xan "vedi 2155 243. ec Caxb) +celd) pot? (Sd \n" e) j il 20043 = 203 e sak(ht) ld ponte ng 0 e)7ll gow 25/5 =1@ 5 colput @ 23 Jy w043 = 203 43 03 | Joo | — : plain types of chlolypes waith exemple a pyar: ; Pala. types J —— + 5 Mee ee : 3 > chew ae. > inkege? Pfendlirs => shcnes a fiat Danays > orien double > ponters >. erurn > wid > typedef Pinoitve | Basic cbta types + he ato ype species the size ond tHe lp oP Infermatwor the vartabk will store. \anleger'-—the integer data type stoves the cohol mombes evithout froctenal or deciena) values. se - 207-4 byles format Specifior — yd oF Ft include cstdioh> void maine) i nk umber =5 7 pinté rd" rurnber) j 4 catgut} oy flab | upto se de bys Fewer grepin “If ise rember © 55556) | jpetg Cg rember) 5 | oteet | 5556 | el Louble Buble ale pe stoes factora! eurbers epte is digits sre ~ 8 bytes foot spetifier ~ 7-Af (tinchide ¢ stdlioh> eid reine lube d= 1. #669780; Pinte C8 25g AD; let 5 c89750 dee faroctendl reenberg = afcdesodler © Al can clon 0 sale chovocter o> pir opener withio a surge qeles. su ~ tyke femel pitino cr 45 Laiachate cst cliosh > yor main Cy f y) choy BK; Jprnty C" Fe a); 5 autput «= x Facmpe for sbings- include e stdio-h> wid maine) chay StEVET = 5; prints (* enter shing:") ; Seng C78", & Shing); pirlf ("sb is ns") sty); 5 duttput :- Enter shing + Moniker L Sty is mMontka data type rething actors, venabl ard TH types c0llh exampye | void ved! 03) a) Lefire V pagans: in svi + A vevicble fs. name of the memo, | ttn ond it 8 sed to shore the dale y 3k re can be changed ‘and reused! many bine Seles | alate — votable rame j | int aj chor 7 | fleat ci ele e fo cefie 0 variable: A vaniable name should be started! voilh i " plat oy unerstoe C_), can't be storkdl cit digits oF symbols: la. nb wad space * aallewed with in the vanable rome 3. A vanabk name fs rot be a key wcord at 0; lta; sat x; ane valid verables, Sk 2} fot a by 3M sarah that is as fosicle the function ae invalid variables. Types of venable» p., = pr gol they ae loc! vaveble, Ge : Global, sh erloral vontbles |, stale Putere 1\Lecol variable : ‘his vanoble te declonedl tnsich Ue. bleck ov fonction. a vor! maine) ink %=1; Wt local voriable al vavioble tfot is decree! cutsice the fonction 4s called Global Yariable « iy fenton an, chorae the vale of gebal a @t is amilable fo all the functions. §: wk vole = 20; I Global variable void main CD + é : int e210 ; Ul Gbbal variable y ad stat called ov blck ty using the ke wee its value beboren, State ventabe- Bt vetains “multfok function cells. sear a. eqived aint} 3 al x20) static wt ye met | ytte | pant ¢ C* zd pd", GI), 5 output! mel ttyl ye 1B Bo on mneny. tirne If gas eoll the abe forcton ety Poa Local yortoble pants sorve value Uy But stale variable pnts jrevemented values | Ike laden fod inside the block ave bles rt ce 4 gil variables 10 wee, cred ly he celled as 4 Kapoor "puto! L sak velo; nato ‘nk g=?° ; 5 nt Fore variable in mullpple see source fie by wsig He external piable cderokd by |b kya en. 69: fatem nk x10) fawpine ype comersion are) is Rey exemple foogporns. see Al fb can ceovert the vole of cre dole | ‘alher ele. Hype is ttl as type oe or ype sing There ave bee lypes Of conversions « “hey one implicit and Explicit cenversions. \Sopliat Gn implitt type conversions ane automatically by tbe comple tn Smplicit type conversions are done higher dotatype fo lewev- dota type ccnversions. | tinclude e stdio-h> maine) dhuble valie = U6 -170G17t6t7; | print? C8 Lap \0"", value ) > tt rumber= volue 7 pints (8rd ", rember) ; j | ps. (6-116I71617 6. picasa apltit © The explicit ty tenversions eae doy, byte paparirg prancialy * “The expt kype “eninsons ave core fi? Tear chile ype to highy chia type Heinchide csidio-h 7 void rain) fe uber = HET pty (8 ines = 4d 30", be) Vase rahe = (obable ) nommber j pnt ( buble = PAF", value); deuble = 467-0000 ASSIGNMENT cHnetER 09 q] \eaphin ckcisico statements. wait programs for | simp if ebe reste! yf, eke ifs suikth « A) fison rraking stolons: foo chart gab : Steal | ered conten [din rakig faute Stolen / press statement foo F conbel. he ce eaditeral eaterents allads ypu to upon the recall OF rrake 0 decision bastd decision raking staleoro) condition 1s colle! as | smpk iff” statment execules: sare stelement| sn the block when an expression ealvates bue otherwise tt coll he skippt Syntax. ¢ (lest condition) | Statement ; eS ar a TE if Hike zatdlio-b> iirc) f tet obj |piete (ener vobes of & lank ytd td", 1 bb); $F (4>b); i Pott « fs grater than b"); iy Calpats gnks vabes of a and b * OD Li geatey tran b Ve -) [sete © af the slakeron! exber the crc ard 6 \0'); a ig fue thon exccules the xp Bleck other wise TE exeeeiles the ele stalerent- || golens if Cleat eoton); | Slatement 3 | u | else | Statement ; | gb flew chart _ Hhinckice eStdlio“h > main > é Tat bi | pint fC" enter the vO Sang (“rd yd" |p (ab); 1 di 2b); é poe ox is greater than 6"); | else lea pintg(' bis greater than a; 5 5 cutput 1 enter the voles oF i oe | bis grater than a cutpat 2‘ enter the vakes of & 17, 16 a is greeter than b. hes ga and be"); : a and b ard b — rstedl_iff gested IL G1 mmcans ewe of cendttwral wnsck erether cercHtenal tolorend. Se gelen plerdition 1) if Ceenditton 2) Stelernent- | 4 else ‘Stakemene eed 3 {Hewchawk z ° [statement | dite | [iaterent7 sole Cyt? sp ele i j cut y 15) vg whee equals bo 2 ond nt prt ( we quell fo 15%), 5 a (° eaten is false"); 4% J : a vake equol fo 20 5 vake equal tors Oo / = re EEL Th seborok bas prctabibly mate Jaf siemens) toeke yf taerrent Sytem (St cerdifien ) statement) j q J else ig Ceordi tien), stakemrent y ; else | shabement; ca 9 Sih Hinclade estdioh? main) sat orb} : purty (“eoker valees fF & and b\n' YY ang (8 ard", CO bb); ff (arb) f ponte ("a Is greater fon 6"); 4 aloe y (B30) t porte" s guoky ton 2") 7 4 ebe { pintg(' a and b per ove eal") 5 4 4 zulpob qi abes ofa and y7 a ss greater then b cttpsber- Enley velvet, op cord b ter IF bts greater than 0 culputs © goles vobes of a ord bo th aondh tele ane equ goltth: ail e082 ole ers got coi alls you te these tem good! eplens so it is cal Syplons- calkel 03 seelechen sok pio “goilth (erable) I slotement; break} Ose? & stalement 2 j peak j cevecot epee soon ase 0: statement n ; break j defacl-} Statement ; 5 dtintludee stdioh > wid mainc ie fot week 7 prvts (enker Sunf (* 7d" sek purnber 20"); ie week) ; Seoikch (week), ase! | pint ite beak case 2 | piotf ( break i ve paendg "Di | » Juesday")} cose 3: prot tl book case x | ponte ssdey"); | beak 7 oe 5! | pute U* paety'"); be. i oni C'gaterceg Dj Bok? (ase 7 pot rake 7 al a wig amare week mene"); © takdreslay'); | Srey"); | ee ld eet wrth rents 4 | oe enter seek oper 4 ——_finalid_weeet_number id_ eek re. | prostaat sfor a Get) [ei —F6e -—+ it 17 hpeal, 7 —> LOE EE ekg | [ax rea k, tery dey 1st +} — ral ww 02| Kaploin Leepig glatement will programs >) for Sor", siohik', ‘do chi’, “rested! een”, Al Iccping statements + | Seal loves execution of % blk of statements | | called beoprg staterrent& PA beping 480 pres of te preyram (0 be execute sepeatealy antl cerditon is satified They ave four Kare of locpirg stalernent inc, |b The for... kao stalement | 2 The While statement | 3 the db while statenent | he nested leeping 1 for hep the for kop io ¢ lar js used to sleate the Stalements several times. Sintas i ‘for Cnitraizaton ; cardhtion 5 incre [ deere) Slalernen ts; gf foeereet: anche e tcio b> eed rein) ol 18 e for (ie te fen, 144) en CO" ran" i), 4 5 culpot» ween @| Lecremnent + |:thinckebestelio +h) > void reaincy é Re rnrty for (725, ie=7 I) Spintf (& earn, iF 4 output vod woinc shile Cie=1) pint 1d") fete 5 j aes : 4 5 fo while: Gt is simiby to while, bib itakays excceite the block of cele atleost once as long as the condition aemains bue. & is ako ealtd as exit onbol beep’. Splax: a { Stalement troe | derve 4 hile Ccenditon) 5 flecchook~ ke gout | lop is call | Hintkdee staioh¥ sed maine) f tak $et_n us: pintt C va \n", echile Cie=0)/ leaps and ey nts nesting of leep: ies rg the ‘tee statement Snside onottes itd os nesting (oep- Syptaz> fer Crnitalisalion y ecocion increment [derermet) i fer Cinittoliatien 7 condition ; tnere] Okcre) stolemen sj Il ieoer loop teen j (| Guter Jeep 3 (stent) [witilisater ete Aagiten ‘ep. interest Fe ae ep] trove! cheve 1 lg > oe Latinclude este b? ‘yeid main€) gt) | for (get, TO=PE t pitt (" d\n", ae) 4 pinee (8005 fas we 7 ba PO a br te 17 18: ne 5 9 97: 26.29 30 91 92 93 9h 2 - poo boentdng slaomenk it fo beak ) wrtine rele fl Byartbirg stalements » “the : a slolervent 10 Crohey see alls orn tantinue? and er ge baal or (Golo! 1 us ots, 15 used! to bonsfex o fire cfr) “abel onsfer tHe pregarn exh) tox tole! * sake Dl 3 goto tobe! pregrams fy nepers Lerinclocteestdlio-b> oid racine) f nt rember T= 17 Jpuott (" enter rarmber which fabk you cont to pink \"); jacor (8 re", Soumber) 7 table + pot? CS vd eed yd\n" prune rurmer #1); . te ap ( Te = 10) pte toble 4 ; rout r eats iy delle gee 001 by grottace a Ping, oid 0010 -t i. rae eth Geass feel bea; a) exu= : one Sit C80" 1) exe = 36 ; lle gers op i573) ange 4s freak i exg eH Gxb=60 ; on) break he broke cgtoternent 1S cord folemng 3 or cat fom the block se, do oi culpa’ : break 15 asc) with for whi le, do whike ani a sak fokrent . . Soe g) eoptinse The entinue stalement 5 used b a stip sare lives. of cede asic the leep ard) stakeren E13 — antinue ith the tk tdeatn « iS ea / sate bing. the prgrom cent te te break 5 S beinng op the top staterren 3; foe i Statetren V7 Statervent 2 ; lentioue j Slaternent 3 ; 3 7 Hinddee st vod ein) jor “ an fo eli e055 we ‘ i ip 222) 67 centioue j pints (Ay oi = temminate te ex ackno cent! Glan» Senn eforeton| pincde 2 stdi0-h? wid maine ) gpl yey i mt Cet sabes of Hath ad BW"); sort (nd ", BL eb)j 4 Ce ath; : getuih ¢ 5 4 sob? . apt! kas bath G ord b ASSIGNMENT CUAPIER O03 nation of arcay are) Fritiatisatin, charging eborerls FP anna idefine cerrany » deck ard accessing ord Coit programs Aufrrays Py anay 2s fired colbchon ef Femegences hs ype toes whi ave ste re an centigaeas mening ee tex con ceeess chments easily to store nuitple valees ip 0 sungle vaviabte, (Advantages WW cae. eplenizaton ~ fess eck Breede Fe eS cate Lelemeots fun an andy 2| Ry esing amray expt eco” si ar anay elernen tS. 5|ancbm ocees ~ econ cess |aardemly using the array Blechantoges: flacd size ine con cfire oF He tirve of decbnalion of the anne) ix conol crceeel the fimitalon size of an anay: piBecknation, ofan andy * |eLalalype ammyrance £9126] inl 5d 5 pr a fratallisntion of on comay t= | initialtise an array by using inckx of cath ekrvent- ation. By Using Grays ey eirg avrays ly. sorting of eng elements Lage toh OD = Ba a ror vip hoy, fol [opel w pl 065 afol ©; aft 2; alr + j alas = 40} a fH) 60; Lytinclrde estdionh> void ai) ink Fd snk rnorks £5]; pranks Loy = 80} orks Li] = @7 rrotes [2]- Te marks [8] = 753 pranks A] 85% [por lies 125 pitt) paolf C&rd \o 11 pparks (43); | oP 6 e 85 3095 go, a1erser 609 7% tot ALD sat st a wk af d= £ ; ther abaye fare Si Een tive initalicatien Po emey can allo be ini cig wong. This gocech 6 usd be lage arrays include stlio"h> veidmained tralised ab 9Ptime ly essed for initialisation fnt als; pints (“enke> rrray) elerrents vw" for Cis 7 145 5 it) Seong (8% xd", Barrltd); pint aay elements axe \0"); pr i he5 5149) ¢ t " pol "7A", av fid), f 4 quipub: Enter ory elewenks 7 ? v ancy Chrrerls ave 1 . OFS oss i Shegessing elemenls of an ervey :- 1B access. on Gray element that rfers touts Srdex revber. 2 Anay rdex sknts With anay fey ts the fost ehrrent ard arvfet) ts the seterd vélerent ee- tk indludeestdto-h> void main ¢9 fot embev£ I = £128,495 Pant f Cob "> number (3; 3 oulpuh: 40 02. Define 5 chonge an amayt- (ak an choy the array element by «sing Woe nummy vet) manc? s Spt mumbe rumée Ben printf CV xa". number £23); cup exrray to chmersiona] aes) coith poupam and defire Sbing , ckebrokien y initialisation , Reding , exiting of a stir9 with prepams. PI) Teo dimensional Grry:- The we dimensional amay is defined as an andy of anays~ otk is cxgenised a5 mrabices which car be ‘npresenteel a5 cellehen of 70085 are cohrens, Keclnation:- . Kalatyre Grayname [10-04 rect) [r0.0f tlumndy Wh ale 633; Trittalisaton Fab aCHIEI) & f1,2,3) M05, 6118 TIO ZZ, 60) ink af 43s] = é £12434, 8456, 69, 101 und} ~ EEE pcabice pure tobon (acer) apo, ) Ole ' a ae | atu} of} at nay) 4 s ‘ ofa alaiy — olazy 7 2 4 | also] 02,1) z, 0 " Ainthdes stdio hs yoid maine y int 955 ol cov y EYEBD = 72.13 He $6 718/510 DY fv (420 , 424, 144d fo (fo j23,je4) prinke (% nq \n" , Ovv019£57); 5 . 5 5 talput= | oa 32 q s 6 7 5 0 ” n . 2) String - . 1. Shing is a Sequcre€, g chenatte> hol on, ic shag is 0 eaten, el tori se lt paneer FE Ye : : sy sn aBpsally © bree es nok syppert hing asacta type “ately ene dimoserel 7 wn cdanguage ; tral contains ll character « by the compiler 2 Py sting 7 ef chawclers The sing“ vtleore io ap chasctters, anCledig PN) ie pokmateolly He ab th nd of th Shy &: chor sh Cae] =] wse,4, orm y sh [wlelTde] So = 3 Assigning pecan sary 1] SHO 10 CPrspeting 6 0. square. ep that pomvekel with rail denecbee volley No a a Shing ts some as or dimeristera) Syplo! biotype shirg rare CF pj thor st 0; Manitalicaben of Shing A shieg to be seikicligd in different uioys [Assignirg 0 Sting fiteal withcot Sze shirg ial on be assigned cititkeut size : chy Sb = © uxlome “ esgnirg ashing hbval ecith free ofned Se sping Ital con be assigned with a Hee Jdtpired size bub we shoul okanys acccont der line exh space. Which caill be assgned bo &: chay rCeJ= character by chorocte? without size. ile con assign chonattes by ‘chavacler ccittoal Sze with pull chmactey at the @ he size of the shrg 15 cktemined by He compile Guternatically- %: thoy SWE I= fo null chavacter « monike ", er be (Ose Si 5 Pssgping thosacter by chovecle. tath free ckfined see esr can al dfine ashing Grnatley by character evith fee fined! Size Geo sh 110) Eimtcole Mr any J 5: Qecting ard ontng of 45 7 pb pomel gecifin 4S" an be ead 7 se [Sing Tipe shing Sed at bes not content, He oid Space: alte te mb required! Before SUG itt fs a pointer « 3.an colorgooge sting Nhrery prowl get > 15 euseol to aad a SHIN 4, scarge) cont be wed to 1200) Shing. $93 fedlne., Onnesy ant use getsc> 0 read! I veviable Brcuee re rresltr ecoral -Hosever 8 poultice Sttng 5 Pink) cant pink pralttootd $19 aba time where O% jouls function can fe tied punt reall teed shing= Ht inclucke < stdiosh> “ab include < sbing-h> void) maine > é chav sty 050 > pints (ener the srg \0"); oot US xg 3 St) noth Ons" i 4 culpa ® grier the ‘moni reonika gs, palsc) pinthide ppirchude < shivg-h> wid rreirne) ct cha? rain (9 intf “enter the Shing gets (07 puts cab )i stoi Siva. priya ws output enter te shing ~vizog fs 0 cly vizag 15 0 aty: “Tobe of stings “The of Shing and & array) & “moni ", ist of rames can be break a5” table fas ivensienal character to store the enine- list. chos stedenE C50) = emma, S50", “Pig -ttincludle estdioeb 7 yee! rraint 2 a iobti . char gtr (3 IL16) =f “8h panty (sbings \"); for (7=0, Fea, T4470 seglack ", “Rect ", cate chins, str C10); 4 ech >: atpat Sbings ak Blue Black Red) ‘ A 03. fexphin sbing fordlling " ‘cxamnpke_piespars: A tee ave hoy tmpottan ting -fanclions defined 30 sting b liber: ve broth & 5 > aeleors 9 Hevea oe nsrct qounk null Character the guen sor -# "No? - sthinclude # irclide 2SbiPg b> void! rain ¢ ) é cy e chy Sbrfio} er car Sb FoI fe 6, 6, 606, 9, 64 reovainaen 106, me} é lengths of he sting 46 Le)"; Strbntsty)) aulput™ Length of the sbirg 98 7: sbrepy 02% “This fenction eeples the scavee Shi fp destination shing- 7 shepy Cekstiralion string, sounce afhinclick ae sthindude < Shing +h > void evain cd “wekome"; e char shy Lio] = “ wekome choy sév2 Lio}; shrepy C872 stv 1); a Ccqpied shing #5 n8 "7 output copied Shing ts weleorre- strate rt (cat = eencatenates) ‘ he strate) 9 used to gonkaterales Cocbing) hoo stvings and the result $5 veteint ‘be % fist sing fan = 1d “spreat(p1se sting | 2% sting) a ahinclick < stdioe b> thinctike <. shing h > ced enevine ul werk" & chev stntio) * ” char shoot = * SM pye 3 atrcat (#011 PDI “4 yy ponte (® ,st Std gs rst HIDE Puipat? sett ing 35 rranita, $Me pye stempt) + “The stomp cemmpenes bee0 Sigg Atineidec stelioh> tt inebdee shing-h> seid maine chen str (LoeJ , Stv2E2I printf ce enter 1st sting: DF gets (stv) 7 port (“enter 204 shing + gets (shr2); of (strerp (st 5t2) © =0) itt (path stings axe eteo!'); "i else printf (*sbings ane ret equal’) ; 4 J catpal 1 ater 1 Sting + ronika enter 20 ghing treroika Feth shings ax qual cedpel 2 enter ist sting = Pviko. enter aNd sting + pcanike foth stings ax rok equal SV i Dt is a i oe rg secl to print the veverse of te Hincluce Hinclade esting b> veid regin 9 chav str (£10); piolt (“enter eng sting r¥); eis (8071); pul (* Kewse ¢ stig 7 v5" strev et), § Yj costg riley any sting + Monika Reverse of sting 18 okroN)- Yr bi 6. strane) ters 1 eed 7? fhe sting thenatlers I [ee Hirctude 2 staioh? Hinclade € shige b> ‘al rain C) Char strife] ; ponte (% enler sbirg "3 y OSES et3 (5001) j Fate CH lower sbirg 15 #5" strher ce)F 4 taut erber $b 1 MONIKA catatt aa shes gs. rrenike. 7 trapxepThs frttten bins sting chonacters io Lspper Coe ttirtde estdioh> thinchdec sbirgeh> eid reine) Frat stv 10109; pente ce enter sbing "; gets (SE 1) piott (upper case ShIDg tes", StepT tstY)); . 3 futputs enter sbing : monike. Sorter upper Case Shing 1S MONTE:

Das könnte Ihnen auch gefallen