You are on page 1of 16
~ POINTERS ~ 1) A poinkoy ts a devivedl dale lype in'c’ which is Conshyueled ok fiom fundamental dala type of = fg eng a) A pointes is © yowable which holds adduiest oF anolbey variable Advan lage - 1) By asig pointers we can access a dala which is available ouside of fhe funckion. D py using pointers we can handle stun hime memooy maragemen|- je, dynarig memosty allocation . 3) ey wing pointers we can handle the dala sloryehure mone elfen WD Gy using pointon we can Ter the exceution Speed of the piepean | cSubpoiols. 1) ashen we one working with the ply we need ho use following Operators - A. & (addlviess-of operafos’) 2. % Cindisiecon ops] develesrence op / okjectoy location / value al add.) Addvressof operalors (€) alwoys viewins base addvies of a variable ‘indisiection opotatoy always Helurne value ofa address. aula. _ | alalype phsnames | BEGGHON f void maings toh i; ink * phar; phi = &i; i 1) 1-514 vawiable of bypo andl inkegoy, if is a value lype vossiable Go 20 O¢ @¢ -s-cecnaoen u ue , 9 Pht is @ voxiable of hype ike, ih is 4 adds hype. Variable rhich alwoys holds an inkeger addiesr , _PROGHAM 1 void main cy §05— 0009 000/ IN) 0 . at ay BN prog inkas > 7 ink 4 phot; ph = &a; Q=103 1 PHIOFE CI Lp yp" Ba, phn) 5 puinke ("in 7d hd", 0, *plo)s ¥ phy = 20; PHF CHU LU", &a, pha); PHIOLE CIA Hg", a, * phy); Goo 3 lp ,oxorry 0x0) Fy oulpu}— —Addlys (1) Addus( Ht) Is to to 10 500 500 Addas (8) Addis ( 0) Se oo 20 20 Te-3.0 Tag wh =——s oe ! | : | dos te bit os — t enh video Segmea ova 1m | grephier video Sqnenf Jove ; e (ci ko naam 2 L wane wa te Segments TT : : | ; v Segmen- ; | egmen Sue] 655266 | addvess poink. uv » 3) qs $s p & 3d morse nace RGF GSE A nn aera OS a ox tere sotiel addsiere pala segrven - _-7 6k 8] 6553.6 B OXPREE Sees 68885 ig Te-3.0 designed on goag anchileckwie, ie. pos 1g bik os isa Platfosim . G OM TC-3.0 when we are designing @'C" prrapsrams, eshich occupier img dala. This Complete mg dala wit be cliuided in bo 18 equivalent: Pooks cated sagmen}s. each and evey Segment having a unique identificahion value called! Segment add. which shools pio 0x0 and ends af oxp Amongs Hose 16 Semenks gH sep. he oxg is called daka Sepmenh., NH segment ie OKA is cated Graphics video segmenl, oxg iS caued lexk video sepment printing stelated pyoceis witt be handle in kext video Segmenf and goiaphies slated data wil) be handle in @*aphiecs video Sep men}, whenever we ane Conshoructing ony memory Hal: memosy wit) be deeupied in dala Segmenh Exch Segment copadly is cu ke io 65836 pylos each anc every Sement wir be disdect in lp Sant} pow! Hons cated Sells, each cel} capacity is 4 bybe,

You might also like