Download as pdf
Download as pdf
You are on page 1of 38
‘ : ee A Kbusclane is 2 collection up werrents og valiggount dala Liypts groupe Moy then Maer aingle mame : Lt 8% suing, © struct? wwe can wlefine, rtuolioe def. * gach elenrent in pevuclune defénition ds ‘mumbo’, Syntax Struck Atructurye Leg /' ‘tdenlily 3 (bemicoton aut be there) A xeruclwe tb a cotluclion of Logteally, lata wtaguitur urcter Aengle rast | chatoliffx : i struck Stuclent Dy Ap . met wl; Chay Erm] name [iz] ; * float ¢9pa 3 I * Abuclwe voleftnition unds with semicolon Thon wre Mwo fendarurtel warpxcls af soul Vaniabters : 4 Decluation Avia Variable & Acconing, of Audwe vartalte eet | 2. pecueearron oF. STRUCTURE VARTABLES | ot nated defines warkous’ propoclios about data stored in memory, — | ; . ue uur, deelpoe éf a xbuctiwe vetiable, Qalouation with Aauchire definition :; SYNITAX Atruct struct tog § : cata type mumbuiname 1; data type rrumnbOnoume 2 ; F striction Vantable rs ye~ EXAMPLE Soc employee int rail chan bey name. Tao}: float 5 5 F emp yf Hat oh Lo sriler do employees Aetoik at the an deo a BVI emp [40] : } v a sane TEE - ee corteomernemnee e Qecloration afl sCueeclivel Mefinllion SYNTAX t soul suchen tog cata type muribonar 4 5 ¢ talaly pe gran hortMne Rj a sruct srqcl.ve- vartialh? 5 EXAMPLE *+ eoton souck saci has chat naume [40] ; int id ; Float pe ; $3 struct Aluclent S35 4 gumbo of vertabtys Cv ferne muathod ie, along, wth wr lef, © # number CF vouriables ove afcecl: use. Sectr70l ser alot BE saves TAL metho &@, : cade Lo adiclit A veviahte LP matin function . . STRUCTURE VARIABLE } iL. ACCESSING OF » we cant Houclo is a complen dotciliyr ANKE ’ - ~ gn veulue eclireclly to it wsen orssegrrrent operate 9 apeleyectucll SOUL: we must axstgn dala Lo Meir eprralelyp There are Lwo types « weil, wused fo? accusing, Ao: OF oe mem: :) iin terete scrcterarecneemmeneceementcttet |. Rot/pertod operator (+) | © Aviw operaley (— ) 4+ BOT / PERIOD OPERATOR: | Ret operator us also colleol murnben acces eperaler, woe use dot oprralo) to acces members af simple souclue veotcabte. SYNTAX + structurevarcabte: « mumlernare ; | EXAMPLE ‘ } Sirids) ! Ss mame ; Si* copa ; & ARROW OPERATOR. + , Ce : Pointer Lo atruckoe Vedaple ae ince EXAMPLE, te sj ta : om Nowe Se GPA ; bi wwe a C program do Read anol diyplay, dangloyee etait Ling, aionpe BOULCLUNL + PBEGIOSNAR - method -1* frincucle < hechio.hr YASASRT-P Auk employee t chee name [40] 5 ink id ; float Adlary ; oF * voed. main) : Abrack employer 3 poankt (" enter employee 7arr2) ; ween ( “PSs ep name) 3 poentt, (“ Enler, employee Uh") sant (* rh” & eA); P pnt (\ entay emplogee 2% 3 SOM ELE, bp eyr-halarp)s 1 nisplay employee ctetatle » potinlf. ("now tb ZS", Snare); pout (“id is ra", Grids pelt (\\ datatup * £5 ey. dalarup) 3 5 . . Hethod -® ¢ struck employee chan name [40] 5 tnt id ; float Aoloity ; 3 void main C) aeruck employee & 3 Alrepy (ey: nome AM gam! )5 2 lol = 405; errAatony = 35600 1 display, Employee cetatk print (" name tk AS" ey-name); priate C" ct i nal’, eb J; prartt (“ dalary is nt", C1: balou ys j Ala ley NESTED STRUCTURE + Specttiing 2 Aouchne iN an ancthiy Kouckw bs called Medak ayuclurt Thos, ave two Lys oF nuted Abuctiver + 4) By -heper ated Atrudtinces 2) Ry- Embtaleol ruclwws By - Seperated structs + St wal tuo Mudie ies the chptndent struction shout. be ued Anite The main srudwn ws A member. SYNTAX + Atruck Struct name t t dlataliye membou4 oteary pe member 3 ' 1 feperele : : Kerli otakeitiype emembon $ 5 structure vorialte 4 ; such stucluuename g f Aatolype memient 5 databype remeene ; Snclo pers abruet aude ncuned ; oe ¥ soul ~variobte 2 ; c.... Ai wile a € program clo print Nog ord Auclank Retails } Cid; name) wai, nui Muctive . (Yt indude < stolio-h> Abuce clOb { int dd, mm, years ta; douct student wt id j char name [iz] 5 | Atruct dobdy | 3 S§ void main) f — —— atruct student $5 j printf (* Enlin Maudlent Td\h) + scant (“fal ,88.éd ) j printf CY Ente student Neuman) dean$ (* 78", Av name) ; pointt (“ Erber Row cletetls\h) 5 Beant (“rd nd hol eS old, ¥ 8mm , GS year) ; pountf (" td ae polit, Sid )j printf (“ name is 7.gy) 5: name); printf (4 d0b is rad-rvl-roliy Sirol, Som, ' Sick Yeo) 5 tpi: Erbin Mucent TA WOR Enter Adwolant none Hari Ente, DOB cletais 10 04 2006 td Us 102 rome J& How dob J 40-04-2006. Pronlty a ¢ pregram so Riad ene RHA Mibtrr and Smplaryee detaile wvéng, neced. ; # indlude < Atdioh >: ; 4g Aruck adabu%s : : § chan Atreet' [42] ; chan Kocalily [42]; Chon butik UR]; ' chan Atole [iz]; pas Atruct employee! “7 beds ‘ int id; é Cha-name [15] 5 sruct" aden he; Void mal ce f struck employee: 63+ pint ("Gtr Employee cobiit) | sont (“rd & etd). _prinet (" tate, Emplnyee norneyi) ; ant ("28") & es nome) 5. ; printt (" Enter abect , Pocalityy, Bitiet, So% | sant (“x5 x6 7S#SME-Bs Abeet , 0.q “locality, | O18 dittreet 2a Kale) ; : u Risgplaus Rukeile ond Addoves, printt ("id is voli, etd); print (rome us x93 e@mame); pruntt (" Adolbres ig LSS ea, Loaki by \ , a SAS", 9 "OA: istrict , e.g Alo 5 output ¢ — enter employee i tors enlen Employee name Hanha énten Atnect» Ancalitiy » Aistrick, Mote SBI, pulivendita , ta dopa , Ar id 4s 105 nan is faruha Adres Js 6Q0-pulluenduta:— Kado pe ~ AP ragram to Reaol anc display, salary, ( boc, HRA DA) and employee letails (mame, td lupt) using, neil ove. aindude < Moh > Atrack salorup, “Fat bates da’ pra} 345 a ce : ' Atruct employee : 4 ‘ int td; \s chon pare U5) jos chan aed THT Hud emyhouge & ; punts (“ enten employee id we") seat (" 7, & drt ) 5! point (8 enten Enpliyce Woure WO py sant (" 7.$", eyname); Platt Co Entry oeporkmant \n") + Aart (7.59, ey claprntrmene) ! PUNE (" Fain boric » da, brow); . Ceol (LEP E LLY hey pita Hey OOF) Gy Kobe) 5 U bitplou, ute - ” idl) ; * ae i printf (“id is 7% Loe un Aw ASNN"s printf (tt name panel (" department Js ng ins ey aeportrrunt 5 sha ek a prinet (" xgtany, Lh Sfoltrhel 3 eA. base » AA ae, j Output: Enler Empl “i 105 ae ao name Raut 6 Zr aes 25001 R800 , Stor, 5 basic » ha, Wor, td: td. 198 Tame (S Rowt y deportmenke is IT Aatary is 414400 - 000000 . Cee to Reaol Pasunger (nowne, fname, m-sa4 = (Cid, e pric, seceree, clolinal tain-no) vsting, meMlad, Hreucane . + include < Abdio. h> Atruck ticket ctetoils f tnt ticket_ id ,tickel_ price, cain_no eo struck pasnenaen i chon nome [12] ; | Chan t_ roune (12] ; chon yn _-name 2]; | | Atruck ticket details ; i | void Maine ) : Abuck passenger p 5 Pe ‘ | printt (“Geter pautenqer meme \n "sy magne acount (SPRAY. Pmerne) j point (" Gale power ye fatten nome \n") 5 scant (S7-4", pef-name) ; putt ("enter posse nqui mother nounern”) ; pean ("4 4", prm-niame ); puntt (" Snter clicker oletails \ "5 sant (“Ad fh hal rb") & prt. bteket_id pst. tide preee » & pts bain-no , pt. cudinabion) ; I, Bisplax, powsenger vanl eth Beloi ls print (“name is 287, prnamg ; prinef CS tather nome is 7S”, pet_narnt.) ; punch (* mother none uh 7S") pan_neurt) ; patnth (" ticket details ame nel 70k var’, pit. ticket id) prt tickut pruce, p-&Lyain-no, . pit. clextination ) ; RS ee Boro cukpuk 1 Enlir porsenger nam yYasanre Keck En pawenqu flhur name prathay Raddy erty, ticket woletnils S3RAS » 8005 OR36 » Ruhi. Nome Ws Yasawyri Rel, : attr name Js Prothop Reololy, Hothen name dé Hamatha whe \uckek clutalls eu. G3RAS, 8007 P36) b FP nin anastasia niaeesndibiniome-eunsemeesentateamansnoenaial BY EMBEDDED STRUCTURES ¢ To wateclane ithe Arc Mth thy soul ie Ct sueguives A tuts ot Colt’ ( eo) May. SYNTAX § gtuct Atyuchaonqrit. +” * ig | a 3 Aalortyyx member 4 5 ye Men 2 5 drut here | : . te . i} 1 ; , re Clakobipe mynne , $s; { [ie et sates, e Wrile a program Ap énlen company ondl Snptigee babaits af Hincludle « sedléo > \ / Aru Company f int c-id ; chon C-name $10) 5 Arle empdouyee f pees chav nome (0) ; ine eid; fe; be; void main CD T antt (BUA COmpy, atts); printf (* Enter compart ih) secu (“Ads & c.cicl) 5 pocintt (* Ene) Comporny yom”); scoot (82S 9 Coe neue) f print ( “ gyler Employ name”); ocanf (© 48) Cc. eran); prinet C "énley employe ét")3 scaong (* Aad", acres tA); punt (4d! CC-id) J print (" nome is 76, Cc, ¢-namt) prarig(* employe Mame is 48°) Coe. rene); prints C" Exeployee td lt Fol”, Ce. eid) 5 J (+ wails a C Program to Real & enisplay, employee lS clatatls ( Aimplorpee name, teh , ob) using, embedded. souctiow: princtade < Kedi0+h > soruck employer details { chan nome [40] + int th ; struct olob & Tne date, yer ; chan month (12); ha; fe; void main ¢ ) printf (" entin Employee Details") punct ( “ kita einplayee Nome "7) acon ( Mang? ee )s print (“sntr employee Lol); : \ Acont (“%a" he vid )y - : printt (" enter date") ; peant (“cb & erd date) 3 pintf C* Ente, menth”)» scant (*7%5”, e.cl. month) » pent enter year”) s gant ( 7d", &a.d YOM W Risley, the Aletails of Employee print ( Kimploger detmils anck 08 t ") ; printt (“name ds 7S 77, ename); | paint (“ td wb pel”, Cri) printf (4% Rob ds ZLAS Hh”, Crarolale , Erde meri } ok: yr7 ) 5 employee Mame C Madhu Enlin Employee ol 143 Gul oa 4H trlin moth april. . Gly 4Har * 3006 Employee retail ancl Dow?’ Tame 56 Madhu id de 443 08 4 19 April S006. Wrile a Program Lo his Heme Saudi Lo / print duo different time minke Midactiain. TOR say mete # indude < Atdioh > cubput + of — Mack dime potod botany Jims panic Erlen nook fou 4 int how y mints, Acc. 5° Erkin rath mit lke & evan no-ot HL 45 | struct Lime prod. i& 7 \ erly Liens puaitd 2 i x: . a i int Rows, min, sEC; a Cave i fess ely np OF FEC 34 Jers enka fire pertodd 4 Z 5 ty 48425 45 void meuin ( ) Enter dirne prod & ty dK @1 46 124 ie paintt (“ enley Hime potod.”); | pintt seont (“ Gun no-oF how") doont (“fel atpehouws )5 | 7 artnet ( euler novot min”); vacant (7d) BE min) j intl (“ Gres novof min”); pant (& Ak", &Ep ty: mn) 5 intf (“ Gir novot rec’); | Boot (8 Ady & by ty Bel) 5 | 4 Sisplog, girpouiods tit if printf ( Enter time petiool *”) punt (% bis Adi rd rol? printt (" eter dime pouod 2”) ; pint (“t, us Alt rds nd’) Gh tyes Ge PM, GOS hewn, tyty nin, tty £9 ; a eS ty ARRAY Ob, SIRUCTORE tCotteotior) 6 mnaltigae Aaniahlss wohich cOMagns Mifo about Auch Vi Ai thyend nlienr . snuck sduchoonanle . i i catatiypx melee 5 L Sylar | datatype meprey & 3 ; | ts soucl SOUMIL AML variable [sexo] 5 ecessing, member OF AOU Veruahe (AN an hea : product | detail | produce cetatly | practects ct P lid Plt ple] a Play nave Ce pli]. pice © pir] peer j eq (at P [0]: nome P fo]- price —- Pre) —y—— 200 Total Axe tt Aru : dun Pls) 294 Giytes ‘\ « program do Busplaus product To ,Name, Price of 3 differenE produck wing, Array, of Atruchuet, A A #indude < stdioh > Atruct product detect Jf tnt idk j chan name (15) 5 + float price ;° ys voiol mein ( ) - t int t; as Atruck product Pfs]; for (t= 05 i€3 sitt)" i printf (“enter product details”) pruntt (* Gulia tl”); soon (* Ad”, &PLi]eid ); “ pountt (“gx name); AONE ("79% & \PL. nome) ; © paint” (« ertei productpeee”) 5 BONE (MAEM I& PLE] + paler) 5 oe ‘tor (izos feay irr) wt puntt (Yd Ad In’) p Belid) 3 printt (* name is rg vn’s Plt] mame); print (“price us vipyn’?, PLT price) ; 5 Tee et A } i waco Read & hapos, talusMan Retails (3) “| Avion, of AOU . chee od) No a ’ 1 Compiny ey, pt include < stdlioh> abuct adlesmnancctetalts ink tl , re-o-procducls 3 chat name [1] 5 chan eempany, Pre] 5 3 void. moinc ) f ine ej. abut dletaits B(5];, fA ae Lae itt) pyintt (Engen kaleman betails”); pountt C* Enlor ‘mome")3 sant (™ 48%, Slt]. name; prantt. (“Glen ”5 scant ("ns Sli}: OF (4. oat eel *) 5 Aeon ("nd RSLs rid)s PUL C Eten ruemtion OF pvc") Crd”, aspel, mee Se Yd pant} (id as Aa \0"s Sika); perl" name us v9, Wi", Sfc]-mame) ¢ Print (“company vis 6 x0", sft. comet a. ee proach pte ds : TAND", & [i] -proctuct) » STRUCTURE 6 FUNCTIONS Function °: Fandion Js a Ulf cconlanit. Mock. of ateraria do porgoun a. pordieudon JA O Apecic daKk - \ 4 Sn Aruoure ane function concept > AUCHWUs Os function varqeirlss + A atvuctios con Le. potted. som main furdion ov from any, stb forclivn- ee wthe tunction onli, 5 whh Bt aon inc, the wil 2 this con dee. LAE and, mene » iy may oe |. pragrars © to p0% the any -fanclion od angie + poruclines Se te pomeel fe Leo mithads , s paming, widiveduals —— cas arguments Un functions» Wa). parsing, erlire sales ag an oye ent Jo -funclion. | a Passing, Srdiviclitale mumbo Ox unin fo | 7 dn this metho tach merit dg powded o% 27 anqumint vin he farction call. >. why, ont vcotlectd andyxnderili, in ercerary, # include « soliosh?> atruck compayfy { intidy char name [10] 5 "chai Location £9205 hi pcol fare Cont ae 9° “eax by cra 6) 5° Voiol maint > De Cri = £50; aepy Cc noni ‘“TeH”) s stacy ( & Locally 9°" Hol”) ; Pan Corel 1 C+ roume € kocastion) 5 “ap Coe wane a7 ray oan yee PE Ab is ng 4”); printt (“mame ig 757, £396: prentt US ovation. t ns’, . 195 Gi). Pam enlive ine ny he ae i « angara w fy I I cabo tation: function ty OME lie on > this woncyt dh voup euieful while wot tng biq program% unc. | My gn this muethorl the «cohol Mructurt sis gousied ahrorigh anoBir hunction hy value. > 4b means the whole seu ik posed trough nether Roction uwtith all meunbow ond ther valle « Exe tr includle < Abdio: h> - stuck company, 4 int d+ chan name [10] 5 chan oration LB] ; 33 void fan (Mock companys c) void mainc ) » Crid 2150-5 . serpy (e+ name, * TBH”). * Abrehg CO Location’ ped"); » funce) ; » Healing -turetion J] Mpoming Atucture ax an oagearent do tun. Voicl -fun C%erCpq company ce) mealled f0- f printf (“id ue nav ctd)s PURE CO name dens”, Coname); putt (* pocation yu 7s", c+ bocalian) s *UNTON \ ” + Rayesotd ve duct ! e das a user oleftrzedk dataly® SAR is a wedlction. oF olitterent tment ay different ae un bame rumbey Mbpcalion, * Ayrton i an srimran eg Lent j ee hs % Janse tte _ Mien a4 rach FEB BORO SoBe} oye wire wR Mart maunfoL of the unten Mccoshnip, memfons F eon s unio) — Vasiiohe + me Name. &L-3 A Ol) —+ int! catct, S$ Coune —<—y chon [5] ~ — & nome —»~ chan [RO] 4 adds, —>, Chan [10], . Bn! union Aampte,. . We as “foot. by,” 7 vail maint ) i union sample $3 sax40} bt > 30} | print (“ a value is Fol" Sade 7 | pure? (“b value 6 7" Sb); [e#4) gubpeit, © Vo watestards\, 423689, (Gorbage Oe) | . b vale ds 30. : “wae puagian ato print parenger cletails \ pinckucte av i pia » GV ml, WAC program to print rmncwuramant clekasle rg one mapa Heat enchs) » Fak Crk), ometou. Cint) + using UNSON + union ds a user uchfinid ata lype Merilan Li, douctuw . 1 ea, ery occas om. minor ott. . vunion sallecalis one common wrernery, Letalion Soa ee nip al at te at thé samt deme. >. : | Now : Sits RAwuy | + The above stounplr id & name & pice art mumbo. OF union and Uh, §. Price mempors get covectih Canute) becaue try nal value (pia) negnod nthe Vala a pocgpcet, the ; ea ns In ae ees et ae he gufloclid to other member as well. AY gy iference “Rulween STRUCTURE & UNION STRUCTURE UNION 4. he seperel memorp 4 ALL mimbuw of the union docation is atlecalect Lo ] shoo the fame yen, toch yrumbur Of the sbructe Locations . 2 Keyword dé © struct”, zB Keyworl uf * unten’. 3. pexcot struction. © bam |B. “AEKLOF Lnlon = MeL of Aine OF all AatamembOn.) of honaese ments. L = : ss eo + 4 A aoudbure ‘atored 4. A union sores a cmuultnphe’ values of the: . vale ata, Lime for all different members oF doruclive*: otembou - | o. Ex + struck evnployee 5) Ger union employee i int td : . in€ td 5 Hoot tO PS veg float dat ; Chan rote [10] ; ; 7 chan nowme fio] + ; i 3 } Ds Ge lec 2 [él] 3 108 - int float «char 3 m|t | 2B 48 0B @ ° a@ scpin or aeracturue cablece crecktl Dhol wail! cascrite plage MOIML » Teas NOME » palling apoinge .usovp, smiaeak 5 ductors. AN 70CH, cloupre asth $6 laments and. virile a C gnegram vo read the info about Pagrs. “ap tnoluolt * Seclto-h> * atruck cricket t Chart neue 12] 5, chan Leorn—norne BRI} Float hating suewoge } ty void main () { ink by oh yoruck cuicket ¢[6] 5 5 for'(izd; ice} ut) a ‘ print (" entin (hoger nameys) j cant (S249 &ECT- round) 5 prntt ("exter Gam nomein”); . dank (* 44" elt): am-name) printt ( Git Rathing Average”) 3° écont COA ECCT. Avcinge) 3 ts wi fa iz0, Esbultthy ‘ { punt (“ plosper rane ls Hg \n"”, Clee puntt (* ceamname & 76 1"; Clel.2 ke puntt (* Rating Avorege Js nan", Cel ¥ 34 ouput + Blin name Verot Kohti el oom nome ROB Ero Ratting Avviage 404 Glin Plouen name MS whon., GW tomnome est A a 123 cab phan nome tanelZk arclyan Ely) Zeom name “ent pTealbing Aretoge o Crlen (Kougn non Rohl bhoruna. “ Enlin Team nowt ue alin Botting Ayoug, 406 tintin foun nome ° ke Roll: Enlin Zeam riame | 154 trton Kedting Avennge 7 tin seomnome © | WC" * En, Tetting, Avena a4 TYPE-DEF ! «© bypectef: is rates ieee CITES LypaleF Js a Lew. + is wed we cecal olayaticote Suntty: 09 Jor [2024 “abies nome wt < bypeoled < dle > alias one > Exh? typed int sete; a *| d enigdnal 5 AS oatatyr typooket int vartobele 5 voortabe X43 ,He105, Hi, 305 ue punt { (Maun of % poly nal, 19); sty © St grevtctes some meaning, names do te obundly, saisting vorialde tn C (regamnnerg, r mapas bon Dvd ve meee oneludle. < A¢aub: he , aly iy voit main) ; Palertin inte; iu ay net 2 etyptctef Ent se = £40, 20) 30/40,04 COV puntf (" se &lomunls ‘awe i tr (C905 6204s int) mintt C% Ad 2007) 5 1 Typed electoration for uur defined . oi Aypeclt true, emp employer _ernplogee @ ; epee’ 4 ae icra ays scl emp / : ly id; Float Kal, 5 ie a a Pour 3 Aout a a emp rge “nda ep [0h 00); k EKE tli Td ancl Saka”) 5 pant id in nln dad = 2% Cold res fall} . Type ctef annoats tb rneadabilily, O O Cato, He hij 0 give a nue "buns + » to fe coe ot Mudie ond winion , bit vor esential to Me cypedel dL pny Jo word wouick Reyoool Lo ai chrhustn. ow can, we neo Lo dope rye wwe hae Lb Hf ak ah mse Me cleye clef, PLN Sturt will be no rill to wie Kruck agolh 4 aga Adwankage + | 4. whin tt us uucd swith perdi, Thurs, uHLL be m0 yaed to Ae pork Ruy yoo agel % expan. dacloo no: ot vaxtalde, a Le ue uta in BOOr Do B pafference blw Weolsfirok & bypeclet : THE Heletine suing typecltt oe Cah erly, eae een ign symbotic nounth "' | fr values wor ull to Dhk Aye g by compan potormed by pre-processor ENUM CSumenation) + — “enum” is the wp Fas wer watepinecl nbelye ORIG? as <4 dt supwsens Integral conctarls POM eng 20a & Hadting 4 y , ee enum flag { contant. | tonstont: 2, + Cortlay,. 1D Mt rucotetlcan Aecluiation + wou hak | 9g D8 Be Bibl; Ziialedlion so a, See : Hinclucle < Molo h> P enum wreck. { Sun, Nan, Tuts, dtl I void. matn (9. We P ies Catt at cay = a veel ine eBay J + fps Re wae -pragion, 3 nun keyword ds Lued to cugle an enum» Sh constants OL clecloxeel Lrride { 3 Aepousted! ry cmmas- wae program to print morlhys Lhe a include < polio h > musk fain, Mon, Teer; nek, Thee srt, kf; void ninint) month £ yon, Feb, to ey i Tul» Aug ; sep, oc, ° nav, cach void maint) f nec; | sow (ézot » teeils Let) Ue Curd; wey 2 OINTERS ey, A, RAY Se ag tay “ nh ee ewe : "4 * Porter ig a voriable , Mb Mos Abt ately, OF ancther veriable , fe dé a torived cataty/e + —Agntox + | catalypt potrl).yomt foc #9 arlerisk oF olereferenge 4. Chis Srdlivechy, a 20 | <9 aclbis Of vas, 1e00-7 7 ex : int as A= 205° 2000, adllasis Of pobriter | + poinlin eontoirk thd munery aclobuss Of Mal | Veotlobte as a value. ©. potriins are alto calledl actolyinns Vanicisles Wer iu, contain adddsurs of another variahe, ductviation of onlex Vanialle » we CG tnt *P; p~&a: fox 4 p 2009 at Shis crtidluation G Accent, ; ae a tnt A210 {to int xP; 1000 p 24a; 000 | tad int ave 105 ’ a tnt x PF ae » ha} iW ol | pout ("At ads toes Day ~ ! prantt (" pa') ha) $ = 1000 ranserg Mlcohion | punet (4%, pyr > 1000 pratt (* Wat eps ee OT) pounef (4 rol", alea) ) } La & » 2000 | \ , | i a= « (6a) | * ( Tut) *, grr nore exainyate P an torlager goirien, veoriatile | aris de adobuess oF vant able ‘O' rib collude Me : neing, oprralr #0" ee vadde A* : ae operate? is andechon) telerenng SE " : Swhiieh olurens , asterisk operate’ ae re ae i puued Axough fun o7s. Ls potrils 0 provicle an alternative wong ingounalion sto Mo aos. aces f Ll programin . porta ane used ip “Ayia eel Pm Ming ohare miunery aclbuyss ane gfe © pointes are ceseol fo Kile Kanellirg, ‘ Pointer vhithmalic b 7 To parform anithmelic. opettoné on grintirs 2 othe concept of pov uithatic . Tavs Wk 4 Arithmetic opuatou Mak can be ‘ uid on peony » 4 Thownent opaales Gn ies R Recrement operate Gc) 8) Adolition (+) 4° sabstraction (-) 1 Thourunt ope rater; # we incwemunt a feels ty ont >a palloncuelll dein is = r Ft da th pt a REE he Aine OF olakaily pe ato Kitch ong: ” peentng ¥ a : * The ha ntex vm fresment Ate pantey © neu aoldrens 2 antec «mao 04 AN 0 OOF Ta re PYt = pepel > 1000 Hx 4 = 1004. ttindude < Atdio-h » votd maint ) t int a> [10,00 ,20, 40}; int *Pi p. ealol; printe (“ Before thowsenk Pik vel”, py; p++; I pep ) printt (* Atta tnoununt P# nd’, p); uohich pounlk To the address 1000 | ita the trowmant opuxation zoe. potntin p will prinke Dsl (Dtation 1004 vbecause wath dime *p 4 newmented, 7 St wilh point wb the vunk Enkin mcalton, wghien A A-bytervle Ip the cuvoeet Location « This operation wt move the piri Lo the nek cocation without Empank on 4 aciiial Val.» (without meme, Cocalten) Note He 88 tb olin se conttdoud BL Hoe oh the Inlagen Hs MOA oe ee St 6A Bit compilen % considoud. TN Be SS ap tvickinde @Adeheoe > voed. yrain( } asian ‘f, hte, ds ae: int* pi Oy Pe bay Ys _ print (* 8 tana na es fe Posie Se Prant t= ti Mirena wa" p), } . Nu dads = “ qureent adctrocs- muimbed * gates ye Addition, 1 We tan Bats iikegen® Values he the Pinker p vartabhe is © movtrg the, print vari Pte tebtont road section, oon 234) Fewoandl strection Se : . ne eae. Pf * Ye nd iB “prs . _ bei pétcon ‘ 3, ‘ Mo a = woOUnt abdrtse + mus ® sis sy * 1000 +344 = tp. include « < Mio hr void main( ) aE tnt ax 80-7 {10 20/50, 4050} 5 | tnt ¥P ij ! p- Sa; pane ( Bepow aoldlCan us nob “Ps ee laeee) pointt (« Attar ‘aololétion * hd, SP) s } $2) ado wh nu (uriqred) Po 2 «Pm 40 Sr fit. above onnmyte Ihe addoum oF p Yaniahte (000. Yin vacidling ive. portions eweth #p voudahle, Gk & 10IRs p= 1000+ 8x4 P = lle Aubitraction Ber ee vewctabt br Brample pop-3. be, movcng tM | potet p sthue un backiwcv(l direction . A em Backwark ctrection fe b3 New Addis = cuonunt acdduys ~ rum * dal SRL. P > 1000 - 3x4 | = (000 - } an trindude < Aedéd:h > Void main ( ) tnt q's Si 110/20, 30, te, at; ink xp s p= Re ? ; ” inte CORY sUnKGAGE % P) 5 P> p-3; print (" Atte, wabstract Ad” Po 3 '

You might also like