Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

C/C++ Pointers Cheat Sheet, Lecture notes of Programming Languages

No more need to worry about pointers . It's all here and ready to use.

Typology: Lecture notes

2021/2022

Available from 12/17/2022

affan-hameed-nu
affan-hameed-nu 🇵🇰

1 document

Partial preview of the text

Download C/C++ Pointers Cheat Sheet and more Lecture notes Programming Languages in PDF only on Docsity! Date: 9 Cir. cot a > bytes c. Ber — “| char —> 1 byte Ed a ee Float — 4& byes. B63 PT) Lbues- Ho@w ine 204 lak _&v 3 char C5 We char 209 lo QVes 3 ff 28 be (oolesP table ont 16g 5 Si binges Z * cs: RinterS » Vardele_unat sexe _addess of cotter «17 titabe. - ai Ih EMEA - - SYNTAX “= gl ailamn ne as. bt ee oo] s meE* -Ps 4 7 my =} Ti ae ule ) "ees" p= ga3 /ockicess & oO 64 [P= 2086 | teturngd EO Pr 7) | a=s 5 ui) =P» addcess cour << P35 UH coepab is 204 *P—>? Aalue ot cour<< Ga; MN catpae 13 20h poh Sere - cut<< &P 5 7 ‘Outpats GU, a J Code <é AD} if Catpacs = S ./—> NEREFEBENCING. *o=8; Sieg 2 -*p=8, ME og cou <6 FAY. ougpas. WW) os 2 SEUUEVETUUEUUUETUIISOIIU IIT sss > Has fs el | he Scanned with CamScanner Date: GRKING WITH _PonTERS it Ve LG Besng Sad Bithoat being taikalieed. LEccac}. eat a; Faled FD; cout <ps§ A pocacer moSt ke catcia |izec). Ps PRR R. Fix: oh Ae Oj ; 7 = wk aps p= Sas &=10j . orteca ; Soatpats 40 *p=10& | er SOUS << Ov) -/oatpars 18. —tot lo =203 ~*p = lb I changes 12 6OBO., - Mp = Bio Pano pois te cies b. L> Povrcer_Pritinmettio. = = ine G=10) Se | , wne* /p; 2 : = fai : . ‘Coat a iff op 23 "0c cout << [e+21) 3 1 pes (2ox2 T= Qo. Bou size (soe) 5 1.4, bytes. cour << (p+2\3, Ro1r0 - Cous<d *P G HAsO > cue << Gp: * (P+) 5) gacoage walde gener DALAVATIAN a oe aes OO: PP POPP PPPS PPLE PP PPS Scanned with CamScanner Bate: | - ae F ea (Sinters 63 FUNCTION ARGUENENTS gee — carr. BY REFERENCE +7 ' jf __heeP__ | caly by value t— iI — tre Actual Agueneay fo calling [sear at Rinckion ce crappect Ol te He {Seed the feval orga mart of tre called fonck’en - J the poblem with ens &) tre chenceg mode to the focenal arguement (loca! garialoio) coould ner be gazq oA tre calla Foncttor yoy EE STS DOD DODD & vad cxccament ( tat =) Low xa xri;s Ft To Ex trig, we on -tae_onata_(} fL use crcepeg$ ne OS | Pocat3e cad COll by a = 40; | efecoace , ence (a) j | Saz ad chonege) coat << A% eastond & | YAUg M mato C) : 44 eg qot | Lo. 4 Scanned with CamScanner Date: “Gall by ehxene § a Sques a lat & manmocy ' q Brace "eames & complex dato 2 q ae aco tage ageded. 4 A Vota! rnccerreat (cat py f i apelmpy+4a i |) datherenntey ata to ocdlify 4 i te valle @ Sered na, q int =main(\ 5 4 SS tok a=to; if cccceoriaar ( So) 5 Hockacess & oO sete. m Cok << Aj If 44. 19 Outpat - 5 4 POINTERS ANS ApRays. Ly an | | oe zat Als] , I 216] Taga = ale] aa | 212] 8030. é aly FEL 1 208} AB & Ay | got aly - . A ) rp2e0 AC & qth) ae _ . { = added ny é _ 200 20h anB BID 216 ; Bo 304 & sete tats fetid Ss} | => . Ate) AG AGI abl ah) x & & — ; ; Scanned with CamScanner b bhhD Se vO oD KD DOV ODD OH DH BAD wD ow wp Ww Date: intl SJ int *P) = & A&I Te base ackteas F- A proyicteel. Cout<< PS [1 200 cout << *Pi // L. cour << p+2 5 I 208 coat << *(pr2)5 =. Tre above code om alfs be ategg ag; cae ALS]; £ wi * PS | Eleameat at Todex 2} | p= A; | Adess—> FAC oe (A+2) Goub <c pA, 1200 | | Volue—s aCz] o A (asc). car<g *A; WER | coat <c A+4L) W204] | cout co * (A+) 5/4 | “Ar 3 Wiavalid. ptt: 1 valid ARRAYS -8S FYINCTION ARGJEMENTS =- a vow toe sand Etenonts (int aca) + tae _maca_[) 4 Sat 6, Sum=O0; ! ; 4 rar OC Te § 4,2,3,4054 )' wk seo= sracd (A\/xeeF LOTS | ne tet = Sam Biennents (Aj for (20; ck Bae, cer) L cout << "Gums lec votals Sum+ = ACS); 4 { 3 TouM Sam}; DALIAATIAN Scanned with CamScanner Date: { | ©) Aros ce Patsad- to uacion by Cokcent + Vold priate (cher cCJ) q H chat C we 6=0 ante (chjl=‘\o 4 coub<< *C 5 RIAA AIT BRAG it CEG — coube<c"\a" ys cae mato C\ L char acts Mello"; ; cour << _ectar ( cy 5 DALIAATINN PRPDEEPRPDEPERPE PEP EPE EPP PPL LR PP RPP aD Scanned with CamScanner , Bate: — - : FAINTERS AND COUI-DimMEnGlong | yup FO” wd » DD D D D FIRRA YS - rae a(S] 200 204 28 22 wG cat p=As = [2] btels |1|> cod <e Pps // 200 At) ag) ak) aay 4G] 2 coubec *P; // R. a Kab<< 4(pra\i IE. # (atc) 1s game as ALL] 2 P= O Qe SB eee cs £ ACS A=P5 a 2 Pp @ BRI a er v oo ; woof _f _/432 ; cnc _B[2I[3} s lzisLe sis] 8 2 Blo] 1 Bash ase Be] Bi) . aC1) 4D accagsch , z 3 Laeeyee” 3 © unt *p=B; U comptaon erfotr- P tums a Poca tS LD accoy F SB categetS- Rather thon the 2-D arcery- we(*ABl-8; JD pide B or c & BO] 5 4Oo sak < *Be Be] or &BRICIs |f adacees & frat tadex.. Quepar 63 Yap. a cate Bad 5 / 4OO + eas f gexe 1D eeiy es cnaga9- (Ses or yoor 34) = Goor 22 [Lia]. i & B (1) i :s . - coubee *(B41\5 V the _yelus stewelabaddwess $ BE or e442 On OTS CGE TS et) 412 or Sacer PREIARTINN Scanned with CamScanner he Ratha | Date: —— *(Bit\ +2; / *(Bt)= BE) = 412 | : 412+ 2 (tr) = LiZ+8 =[u20] or Blt}+2 | o $easiej +2. le coutac -* (*Bat) 3 I) tse=S— are EDO Be ! [i Tl So~emtpote 2S | VE PRCILA 7 cutpar 9 4oo+ = Gol | | ahee value 3s 2B [- FoR 2-D acugs i= 1 | wk B fe 1 (34 i\ _ | BCIji= *(erees\ [K = * is (as: 5] | DA Sp aay os gq olletol of 1D Atag?- | we ce J@T: | |noTE) Q BD aad ca Ww | collection && PD = rr - sig | | ema on ed es co goo Tt ; BIG a 4 op P. | “i 2 iojetate |atol?é 2 iso chlo] _c&itd_, Casio) CON, cep] _cfajt2, - | & ce] cit} ea} DALIAATIAN PREDREE RPT PERT TR TE LP PELL Loe Scanned with CamScanner
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved