You are on page 1of 14
a) b) hale QlI_\o gl cay 55 As gitall Gada oa bib Lal dal ge Aamo UY! tat fs toe int main() ( char str{] = "peace"; char *s = str; cout << s++ 43; return 0; } A: Peace B: eace Cc: Ce D: ace int main() (void change(int af], int); int i, af} = (2, 4, 6, 8, 10); change (a, 5); for(i=0; icea; ist) cout <<" " ce afit; return 0; } void change (int *e, int n) ( int i; for (iO; isn; i++) *(bHL) = * (tis +5; A:7 9 IL 13 15 B:2 15 6 810 246810 D:3, 1-1, 3, -5 Oe ctl Dis aii Gly char * copystring (char * 51, char * 52) Uall Gast Sey oe ST Aleka) 58 $2 Adal Gad lens psi Ul ode (51 *52 ) Gerdge Gosh eM eA ll Gell alee Oe Mas ALL gly yi al oe ob Gg ha Ge $ Saal New Mill pasta lls 223 push( ) Wall Lau yy (stack) Quis Ayre ine a 5 AY eal I Zu F Queue spt oily pS Ge 98 3 Cones ps pop() lal gel S circular Queve x sil) yyUbll @8Ly! ads Cas) circular Queue «gis syAblly Queue glplal yl! Ques Jaa Ul sale 2 Doubly Linked List 4.53 2 bu» 5 Ct node sate ally 9 6 Ua cash Buu $70 Aaa le og gins a bak! (Postfix) 40 Gl (Infix) jaa coe Sl ath yun H+k+a* s+UC*W/J $ Aakall dete 68 alld oes finked list la ye (node) sie 8s) ila cast I aoe SOUND eal A S81 Recursion yl elesiaYl agg paca) 4 143454749411 4—4N Gar oil le ol quick sort Aaj 1p8 Ltn 4 Ltt Se Melee Ais JkaVy tea kal be Lab cay Haj gl 42 89 63 12 94 27 78 3 50 36 [inked Hist) Qa yl os 5 static 4S 38 (arrays) CA jis ew ll ge aS £ dynamic dys 5s {ay sequential search cor Hill ally binary search «Lil Canal Cus 5 ll La ro Pe Sle (ye Jaga thay rol4 -4 chee: a5! a) b) °) int main( )( int “pl, *p2; pl = 6x; p2 = by; x= tpl + “pa; yoo x - *pa; *pl = *p1 - *p27 Coute<"X= "cexce"ys "cey; } int main( }( int *p; int *q; p = new int [5]; PIO)= 8; for (int i = 1; i <5; i++) plil= pli - 14 2 * 4; cout << “Array p: " for (int i= 0; i <5; i++) cout << plil<< " "; cout << endl; } int main() {void change(int af}, int); int i, al] = {2, 4, 6, 8, 10}; change(a, 5); for(i=0; 4. itt) cout <<" " << afi]; retuzn 0; , void change(int *b, int n) ‘ int iy for(i=0; i Agel aaa aal sci y Apa le gl gle Gab ctl dist 553 gals 2 aaa gpl Oe C389 ab JS Aull 10 28 el il ea ys Gl Recorders (sal) USa G. At aly Geely? Cus alill ALY ase CLS Ye teat tat Pema Esl pee N bapa a alsa HNC) pep E55 cil yu Absa cagat) / ~+4- pelle g Ikd plitlighig Lt bag St lé ilegheall MS 9 gull aud ML" Ble Wieidalo genre! Al hao alt Mal dag) ge ep h 15810 gd Ou yaa 6 DGS, ww Avlal Bees cage 9 PcAeatil od 8s ih Gallet (string) jay da bo Shucsl 3 gl Soa Ce Get Ala ane Gaal at Sealy sul One cys BE 5 ALN ON a8 dol ol ali y Gast a f All aol " (pointers) #LAYY anc cole Balad (oil! Spall chow! 2548 cline! we Asjpeyll dogisti (strings) e .2 Staal 2 O98 gall Bott Bolu 3 (String) Bray dad Fela alia uc! 3 gilts teal Gt me LN alladd antes Gesamte tall 9 earl dpe CygStis ud Joy Bulladl pe N aguB Sel ,2I galiys cin (1 PAUL Obl zel * (Pointers) 3 Lay elesiuMy deat tla oleae camsall pel Guo KY Quare Bey al ealdseaieat (2 BMI OSs Laalind gyal Got Jha (S125 pludcl Uaulgs Gallidh Saal § SUS Tay mutagen? Lyegil send es Linked Lists Jotd,¥i eitgs aye (1 queue ase 11,22,33,44,55 stot S SLesy qolisteol (FIFO) tage queues pulps eta (2 910 go Staoyt etay!) Back ( ) cauatt 312 agegth suet Front () cael Sgt ageght sual eeatngsy + Bailoll Sibeall bplell 5 ide eyo Lagie JS Jie cling! ea QUEUES juillet! Stacks GLuustl ons dat Le 1 9 Laglils ipl Cobity colua Balas Allat! lays Jaci protic 10 mou (Stacks) ise clay getiny ical .2 4S yplaatll unis anol 3 Cpe Lit Zlett ste came + geld Somat Sale’! Cpe N cert SSI pps mops auth J elinc! eeRecursion g5ivi Jeutlae 1 ’ ua 2 gH fall aha JAG p gga padi Gell yy CaS) 2 xv T= Abad cig aih VU Ne st - Satna 8315 ¢ Pointers) ttyl e a FARA AL 34 id wa a 1A (string) goes PAW Dediycst or Foal ol ped ed Syed 21 TDD seb aD iat oF Ra Det Sse Cte & sil ye pain NAS chal A pe tol Meat y at (4 FR Aa ne Ail yj al aad Si tp yan Ltd I Fant gh 1) Ae all path sue Goa a CEPR ID ANI CBM pa I ph 9 38 JS AAI GaN age gy 201 TB hans poe id pd A se, aaa Lead gy edly ela NS yd a CAD AR dl ay ly pa 0 98h 9h SS Lbd SN Bl ay c so DK, teen! foptad Aan edl anall cate gig queue Ghee 4h 11,22,33,44,55 asl S DAY gay 25)( FIFO ) tan queues MghD adel (1 $ (10. oe DOs91 ol) Back ( J chad At haya yl soa 5 Front OSI ZX testingh> ED rain sali ry At SAD le ld pa oe Dent Tay AR IN ADD 9 pA Oe OS) SS On DN aA I a ets) 9 22 FAN SO yet le & 55 cian EB Mise So 0 erg pte ans Cha Fae * ] a - + rete o BT ¥ eZ wm SE TEE DH oe pet a9 meye, TY re Fics = rr " 3re oe ; ry ; fi WTP Ee Pee ih ered ii mr ry mete cr N apt or Y art reer i : ' | TP memati ate meee ine Lule coated Casall y stall palett 5h jy ebange Spell aad ha sill deal erst ; \ gl La dail taal ngs} go eal 3 ap? _ oP. F ctl Usa idy gla STL iw gee AVE ‘ll glosiuls ylusall austell abe ed» Gas! x j S28» ST ywotlnad S31, Pointers SI Ay aye 3 beet dhe! & tal gscall ¢ sill oe size =L00 Antal 43 shone del) abs yy iS! (1 SegBt ath ane Bysqlt Md gical a Sg) heal lagiel Jd Sapag gine Lt SLAY elects deed Hs cleskal at ea call ey Il eny.yi2 tae! aay! Bela edi sl (2 He 2 28) Se palaal see Wl Ab Staged) (1 Eyal pls8aut Ahly (pointers) ESN Shy) Fhe 24 O58 gill yall deta of (string) jay dud sel eatin St (1 Ge ACME mg 11,22,33,44,55 atael 5 ASI ea 21 (UFO ) te queues sal yb aces | | Unsaylelag) Back () sinall pl pl aga yall aay Front () ball dol gb aye pall anal ata gy £10 of i Epa Sigua TZAY s esting he> Sal gato 8 ANA o loys be GEIS jy ae 4 TAS 5 peel 4 95h US Fille 10 ap told aol AS Recorders (2) Usa ys 2 SO F tees pa tea ; ee npr? Py gaat Shpall ME eal oleae YN Sak Ale gg ts ip & eee pas Se ol Stack yess de 1 : ee *65 4 cis hy Ue pas Al Ape 5! jeeliall oa 1 y anal 3 Sy ASI ob aol) A Aa geet Gye 2 yiaa be ISTE S $A ginal A Ud ee games ar Abi cigs) a . we | Li oho vb

You might also like