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

C++ Fundamentals (DSA)

This all the dsa notes which help you to crack the coding interview in this notes as you can all the top coding frequently asked questions as well as opps imp topic notes and all other please check it once you will definitely loved

Uploaded by

Prajkta Gadpayle
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
0% found this document useful (0 votes)
52 views

C++ Fundamentals (DSA)

This all the dsa notes which help you to crack the coding interview in this notes as you can all the top coding frequently asked questions as well as opps imp topic notes and all other please check it once you will definitely loved

Uploaded by

Prajkta Gadpayle
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
You are on page 1/ 33
PRPC leurge 9 + A Prepearning Canguerge, “ao Computer Crnguage — CS Ucecl by the. Develo pero (program era) to Com mu wcate Go fh He Computers, > Tt ce 4H. het: of ee eee tn an Speefre Cerng wees, Perform 4G SPeewpfic Ic [0 Crt, Joua ere): 0 matne ek Code Urlehg’ (Cth, yee cee) Ate, Ye Cornlle fous > [le Eamets 29 Mere Cele he, fone, Me ae rage femncet (SRS afer ) shy we Need cit £ what to ct? Ctt CHt Coa heyh Covet, gen exe ~ pus oce. Preprameng (erg ceatge. he Creeteel by buntsh Cornputer Shortie — why do we Necd crt? > ob3ect orcentee Progreim tng —) Control over System yeoourbeds 2 mamory > Perforce ? Efe ciency 2 Specs. -) Use of att er ~) System | Geftrowee cluelo pment > Game Clewtopment > Reet terme Cyeteme Vaxiableo £. Datatypes Tt the Names avi Memory Cocert en 0S Ros Koc bhe nome Oo SKE how Jo int mb xz fee 2 ies Sg Oe pest Date tT Pate Type Verh Cg > rae ty peo Je btevane Me fee a few (ee leon See OB Ketbe type ke vectue feo * hota (Stree, kreyq ( &x- + | fot Hg) ge bt ve feu’ ft Mie deth Ju ret 2564 Wo Fatyer vel Ad } Store, kexehe, (10,4) ‘ 4 Gane) GE) codhp wing +#D Taig Trpur from dove toe tse. Phe, fesmn (cin) fer Faby + Phe © Papa velo fim Fhe User: me : gfe vee whe. Ae : ate tnt matny 7 duel t Cont tener your matte” < end ty CONDSS mae les? yha i ee Rous: Jo value user cage Wo yha eb cod “49, ay ecceept agi SUmeb's Mates! "ee Maske Teturn 0; e Je& hurry koe String!" velta be (pet kee TF Tare Enter baci far +e he Compiles boo et sume Paw yur hume ele Se Jery col C9 esd [eo Cnpur” teh Enter barn fat Fh Ram Nein wo Use kvlee Ae fear Sclete Rey leyunied ‘een Use kawne Poe ek, Word type karte dees, he fume, Cpece cya coe wohe teamince, fo Jets Rew tr Hote bal Ke a vel Comper v Cot meen f ae nams S teeny nome a hae Censy num 5 mut cen Ender Named + ce AERC NUON Ce Heme ena Coe eeiName cp Mme cence, Tt OF d GSwetch Stetem nye Hovo an atkrnetive to Ustng g Jertts Uf ~ hoe Cretments cohen You Neeef fo Comp etse Gg wart eb, ceyCH' not: moet pa. UVateg, ‘Seaennlpantestentanaesinnyemta melee, pv) 2 Chay "Ind ——(1¢ con & om ty Sgntere Pere Sweteh cage, ie a g qs + a jj f] og z Body D Exampu FP ha Clack, Uo tng Names prece Stely PH main ¢ Pat clesy * Conk KE Enter chewy Nez enc; co , 7 chesy » Seoeteh (oleny) { Cent Coece "mond ey Yee endl} Dregs 3 Coeet ce." Tueodkeslccenal 5 Cece 2: Coeet cc Creetn woley"ccend ly fre; Case 4! Ceueece® Thur dey "ee endey bree + ice & Cont Fell the 49h Pehaviour t: Clee ty : xX Case, Ip) CUoe bo? oe 'f) Jota or brite toe ' pice tae ee Breet} ke Cove ig? a E og mye Cese fC) oY) Loop oY —_ Fe Syntext— / ee Ea upetot: df ids +2) 8 toy, ° ) Med des) { 5 Conclterer, W Coste 40 be execeg cas aa ( Pnittatezaty on qo az Era heey SS Le ence ne bé<. t= ee fli j Example peent “Sumit” lo times H Frichurets, Cosdvecrm § Uolng nameopace Stel’, Pat Meu'n () f aa (ett) Cocet £6.'Gurnit "<< end; 4 return 0; -y" haan V5 mas / vari aetll) ko(D) 2 Viele, Crmigne krg 2)-) iRBRNOL/ Conctu'tton, Check ng — i. Fe agar () Wo) se , Chote Yo braber ho ja MC) be eke, me “update (1) fe acle] fear oleby - BEB // 30 She vole print + s? ie Povae fe me exease | leweutyq _ Netiietiimatentidaanaiy Beg . = a eee Ye pure Gop leo Sleep f, 7 : for (tat &=1; Exepos f> C42) { ee) den he 89) bsg ae anki tn a Bove; woah, Code tenninate a UE KE Ecc enays 3 Continue s— > einen / der (¢nt=23 Ces 55 ,Cet4) { Pema ae yha par(G:28) (Comrtinuesy Re pehl, cock’ cele 9 : ot = henge outce Oe enele 5 : 5 er Par (€=3) Os ' Oe A cl EL Olt be re ceeteel fore Mee chitp he 3 : | ele Coase does y creep i) btague besyut (okt loop . Syntaxt- cohie (concdet'on) : q oo - Up dette on Exh : Tne b=2; Contetren oheee (lees) as eee ~ ft ore 2 coun, Sey Coat dem fee is 2 eee 2 C4]: 7 5 “Peletvey, Hees, : Cee. Veeleg, no! | eee a © Don wht loop Synter aoe cnt € aN ro ¢ i i | ui ol lla Hs] 3 BSS eae PYINt Comte 20 $= HE Incl < Costeevems, Yoring Name Spree, Sty Cnt roeetn Oo f dot C27; Lo 7 Ceut ce feet i 1 e= C41; to By ae ftlalécos): Neoter loops —~ “ume hla oe # fox [ineésasebesayadacina je —"yerteet, # f Foe (Qmpsaipminenepeniste | Jb epciteee. Mab ce Es Meet eet Tele ee ence 3 Pent exw. I, Operator (1 CH Se 2 © Percetey Uo 9 Sjmbel Hhat 0 perctig oy. fe Meth Pettit coun Pefexon Sreegfy Oper atey : Benary : Temnaxy tho Oper OPertitoy alee Unary oO perce tor NN, Pre-bocreimant P0ot —Pycreg pee cee CEST ng, Prt gas; Int ass! ORE KE tO et ent fy ij Ye ry | Coat Relutfovie| o pe retire 5 logu cet Operator > Bitlotoe opevcetor AASegnenent, © pexctor # Becth mene Operator 9 teen, few mmerthrnaact coy cy gn yh perce ons 4 Relattoow 0 percter —, ‘lee few the Compaction, wy fou oer 4h Ness Dent Opercetor = = le 2) ait 5 camp =) ths) > oe (nt a=a+tg; Cote ox fe Nag 2-5) > Stes : 2} can be writen <0 aamay —'x 2) X >) > @iplimoeteany con be covittern Ct HOEDES YL . =? mt A= A/25 Can be vortttn co De? —> En a= AWSs Con be cottten Ramm 3 Ye Sttrwote ne por lecim Jearta hee’ HH Bit coc O pe rcto 1 ee bate’ opercetoroa owe OP vr emit fect hats & <— and > | =< or >A &= Xo PN = net 9 <5 < Gfechefe S> <> Viyhe eheft ane ale ry RN oo | o}) oO l FLEo. £ d00-- pp U0 ~~ 9%0FoT 0000 — 3 oo 0 F-===008 40q_. a 2) | ha) epenute a |b | o/P O}2 12 Hohe ofa apm iLeggy a0 ja Loe a 2 it “ Example 2 (cae M See i oe as Io 0000. eoe'PaG! é alle cette seona, pecs Da esetin a i | a 2 Teej) Meret ARSE me ee een gee ogo r tag | ee 0°00 ~ 800707 + cd > ao oh, oo tee Even or oda by Hotny He oy i Etttoloe 2 alas ee 70s 6. Na, Example heen LU 4. hy us Even or ody o eae Even cfeete De ie Oe Even eg oo err) << eee ~~~ oo e eg - o006 cae O10 O.Onr: 5 ody 3) MN (roa) a on ba fup Ie qroletg (hee eID -o, Opi 1-po Komp Ce —— 54 000. ~ eaten ert (oi ,) 0020 ~ eco Cts) 3 #1 vt e000 - Sar e GD 4) A(xor) operator Luff 3 1 oO 1 1 4 Pte vege (2) vale tuff 0 4 epomscitiemeseecitay, 1/0 ee OD Ex p & D a the UNC ee, ro, 5 8,84, 4, 4,12, 2) by g Ane ce Bae ska Unies Ae 4 7 (Gye Shift) 0 perctor exe eee a >(Raht sft] opercetov 1993 2S pushes Shufe (2) a) 04000000 ©0000000.000.06000 rece tos) loot Peseeeee 90600000 b0000000 oot fu earn Fe ear pty Mete /— £9352 —— grt Avot SS ny neme a y Inpee i Pavame tee rietavo type, fudege NACH Meme, , ene Meaty ) a “se Cap es fn = ra ent Cole Cy | e es eh ewhen ever Q cfomeatrany ue ceetlee| Ch Re Program Ct Cveateo, ¢ Eadey 200 the Gteate Vand’ (oho, (t. yeturne ersten Hon ft clatites fo taty door Hy Gteeete, Lemp ——— $ is * ¥ Pot mewn ¢ J Cue gotwe (ents, ney) ting a a ce ay Cont cp _ ans} not Totus n Sm, Yeurn o i 3 i seem) (- 9) Sale (6.18); Gmeitvan Some ray S the soln ty) net 3 are, Metre Us OW return vale cum + de rol anet| dy fs re 1°?) Fhe vetuta vole (0) ue 99779 : i dtven #9 tn mewn Ly Fernete on Se in mein Pts by valu, Chanyeds ete Cea arvana PE ink meat () Wotd solu (ent a) ent GQ=16; 04 +) (Memeo ce Cock <2 q UVa peintes S Ole, Gt? C4 MTT Beem 18: A ae Wt fe puns by wedference SS te Yha hum sek Ae memory lacceti'on Ico etfor lerme ke Wye eebeey culty Name [eo Use lcarde how 7 ape humeaerenpeeee tytn voxdoby f. : | : mee ier 3 abv eryece “haren Chehe ste he seme Use: (care seutte” Ray, &xa Mp le (nt metn() koe o> to; Mt bz 207 (FL 2 25: // each t meaty tnt by = Bi (liyhee verwi able (6) te ates (Y) me ge 3) oe ~ - } //amememo=pa ay i 6): emeenaone 4 (a4 6) j aspen, C a Pass by

You might also like