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

PIC unit 3.Arrays and Structure

The document discusses different types of arrays in programming, including one-dimensional and two-dimensional arrays, along with their syntax, declaration, and initialization. It emphasizes that arrays can only hold similar data types and that they are stored in continuous memory. Additionally, it touches on the concept of structures in programming, highlighting the ability to group different data types under a single entity.

Uploaded by

vrushalikabade36
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
4 views

PIC unit 3.Arrays and Structure

The document discusses different types of arrays in programming, including one-dimensional and two-dimensional arrays, along with their syntax, declaration, and initialization. It emphasizes that arrays can only hold similar data types and that they are stored in continuous memory. Additionally, it touches on the concept of structures in programming, highlighting the ability to group different data types under a single entity.

Uploaded by

vrushalikabade36
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 22
g anderite ite types is defi collection of similae | deta type. known as (roy. . ray Types of array are is I 4 J Three ace three ty Pes o [> Array ; I one _pimensicna| Aras : “Two _pimenston | i multi: Dimensienal_fctbip qealavatton, & initilization of erway, @ write Syater Syntax | data. tyre array name \ S12 C | “peclaration - se jproge LS]) - Tri tratization —I wnt age LSJ? §10,20,30u0704_. @ Scanned with OKEN Scanner = [Array fan hold only -Same deka types. rarting Index of tivst Cement of an array ig 2etd. [index of lay ebement 7s n-1. where nis ge oLarray Ss i Continuous memory PS allocated for elements of attay + Belere “usting ary TH type Zsize must be dedaréd: : Ree (an dassified baton dif ferent Parameters, - 4 @ Scanned with OKEN Scanner 3 6 Exphin_One_ -dinensinnal_ae ateay 0) ‘oilh h_Exampie_ oO Define swith fa Syn —an_atereg One eregor dnl ary “wri te__declarahto.9 on initidization of On dimensioned) - Comey ne An) i | An vay which Contalns, Har Supscaipts § a dimensiemer! Otte a Syntax Log decloring One_dithensionce) At Loy J dela. tyre array. cure Lsieed = Sik ci inthitliation [ox one dimensional crerey) I Grrroyy nam @ Lsabseopt J = Values Frample_- k i foot Fovcenlage T1013 AS =e o— program do wanlihe [sod the “aements ofa ay tn ascendin tna_ordes . J HTnclu ae STinelude aconto- sh> 7. man C) ig $oT 4G Tem ie — Sarees roe iklosiza) : ) @ Scanned with OKEN Scanner 4 — ASE Crd RowsyliQ Hos (i203) 14103144) Fo (hz Fras JO Get iF Comaygf Comrey ti) —_ Is temP = era Lip | areray Yi =o AnD) | Greco LAN = Aenip 3 az 5 [3 Print CLA ascending ovder ofan aneay2\n))s Nor CV=05 1gtoy x4) N Prins C74 i orrey LIT) 5 PgekthOs panne a Total @ Scanned with OKEN Scanner BY Two Dimensionedd ateagy . aa Explain ith example, Swo_dimensioncel ogee, ~ facts eee oy AQ @ Define Syntax, {nittaiealion , with exampieofh~ Dith exam ple of hy, —_dimension®d — artfouy hag ij An omey ith oho Aimensioh ou) aaa | 2d away {s mostly usedin ap may. o Subsenp} $5 caued ag chig - _Syntew Sor dedaratin of choo dimensionay deka tyre array name Tew sire Ti column op | = [Syn jou for jnitiathadien epateay, 1 - { \ | Example - M i iL Creray name Ttoanumber | TL column- number] = vanes int mabe FATES] Preepramm do tani theryx2 may. aoe lainclude Lotdio-h> Atnclude ial Jira sist bays y home apy po pars auto “[oqambhy pees | 2 Ste duinu’ ve PvLy) FO wa qVPI10) ST bu “bulge o Swot Tysso £3 LOUD f Ati RPROT 9 —pypwy SDP ey se penDYT spor hogy erg, Soe ese gaa tepmrogy Fo 4. : Seer racseeeeeeeee cere Pacers NOPE aft eee o I @ scanned with OKEN Scanner = i uel i = L { OG q Cer ey et / PLS howe fo moqunu frames) 3 bul : | t ie fra foaco su yu ii v (eye >C ed eee) $i : CEDSSIT SE TIZOF | tLe frac A ety I - t I Cory foe ares ; = Test 20st) oT ¢ 7 Forno Fo HIDES Ub Of) FURS | — TTL za Tetheoe Se Ue froacb UL = 1 r Cupar PION! oe — you 7 9PVe \ See eer pare oT \ CS or Yor pysy oPmial “Fuso uw uo sued? | @ scanned with OKEN Scanner op CO4neb Tee Pea Frou vioje ou frebap ul yy yulag XL Eta fone vbw Qe TP] foamy J L CDSE T=) OF C [or hosp = ¥ bu | (Da heme AP ASME | | CA SPT er Taper SPahye MAG uly J Wes xbal TESS on eee y= La7 hate {uy a QUPer plon a7 THUD DpH|uU! Bl C4-O1p}sy aphnuy Tr Yo Joo prebeor—pro-purp opr —wehoxy @ scanned with OKEN Scanner bP AIS Ui | aa RUST AGATA SoU) so CHES 71 01 BE CaS sep updawep WPS ee aa ne . | L ~ i Gopi Vdup [hl boHo i tra heot0) 2011 e200 Ss Tareas SE ET Roe) Jt : t a Girmpp ssn oF ___ : cSht Oz!) 9 > ee ee rr PESOS : CT Sr T 021 9 nT TC alrosie sof spuswiata S $2142 uf) fhvssd Seal aoa LT Tool | ia — $$ ae : cre pou Pl ae _ eportny apres P esas —_————~ sep ——bu: Uadtep F~Ussys vy [LOC Of aris zt rps apr aye ND @ scanned with OKEN Scanner ; ie 4 (Uta Cla eeapeap BZ) Puy, i Alwweeore Ppa [px] cxappus aa}ua af) Fhe ed 1 f + t+ (HCE oT fo2 Ty sop ¥ GAOL O21 mF Caspau puna’ oof slams dup satua uy) pray x i + t ¢ Cif xupuk "p “Ay J 80S eur 1 — dee RATT egos obec] TH i s CHIN *D (o=P) 2 5 I CANE ?T O=I DF 2G Aapoet HY-ey Faun Ip spe yma E fo TC 9: t Luy lgegen Te] [SJ exepe Pe Teper Qumar pion + ....-- Tuo —— LUO y ophyuy tel wi 6401 PH57 OPMENT PA Oe OY FS GPPH By aMatay wT 8 : ae aa aX @ scanned with OKEN Scanner — GM Tye yo ~ Chas eae =p Cats § 4, Py a 0DS Chiers ote uf) ad Coe bot TITAS Boys T0=T'0=1 yur TI § CHUPOE POA YOU? SpHOaT CHIPS gPBUT EE ' iti So Caipurped ST fags peur at aud op CaBLOy] GaLpurred 34] Ry Op Gibaboay | PAD 2 wre L v PA=Ce AICP AT eX epeery aed ‘m9 Eide xapew ML GATTO DO0=N BaF CRY 871 07) @ F ( keapour 7 © Joo GoTIPPR ISIS hl @ scanned with OKEN Scanner @ scanned with OKEN Scanner £ v TOrwrG Caupares PU Pony uly sya : pease Gatapuned TURES Uy yyie (Fehr es Se cg puapras FS 58h Fy Gyjuar ted ayy fobvo{Ua 80d olf tt . J {Ud3 #0 a eee] quar 204) | © C924 awou sny9 na] — coupon UL “U-ox 4US fusprps PHetS WUapMe mere @ scanned with OKEN Scanner Gayprnrpywy Foy ep wh S| ce auuanu igre ted Ty -bYp (Tawou-arqeuv, ta dht “rep ‘ WOU -DLHPAMAS —_ FINS “Ua p-roj7@ P_*9F- yep URS [ A AES © PUT Faywr! PUL Goopmay a —t Sune UOD hpog aoapness] 7 i “poameaq y PUSS 244 fq Payepyl ped a 8 a *mnymsyD FUP peop ep pasn Si pssohey nets — y ppqu aes genyrmay = FEMMES fo SUI as G @aUy adh} PPP aoe ssip | ___ +, ro auiyap s5 34° ee JU Mw >| SJ QJappns¢s TP @ Gojoe Sh sopel~liw) P4o pep eP 04 @oH 7 R\duIosQ PUD” sep RS ape penypnre|> Ura - \ : - seppnstS oUt 2G peppy pyyS ony Z Leprus 7° eu [19% YF Lala 4) RUE), wu FSP SH JJews : “Geophys Fo URDT FYE FayON WTR TES POPs pays Vobojunsa) Pralf= “SY Lpas Fur i \ OFF=T193 qul I f[oz] gun 204uD 5 I « fuapnys pals | | C) upeus PION | ~ ¢ may I seme! coat as dedaving array gefony other An away of Structure mus} be used aren Meany MANY variab)eg oF Strudure are Tegelred ; = key. Yo siose Fhe Ynforinadimm of Li Ceiteeh Plager. ey — shud student Shoo} write a Program o_devore o Strudure a book having datdmembersS book name, Price, ameph €disPiay ~ | dato for three books YY te fnclude 2 fnolude 4 confo-hy Nol d_ maine) 4 Skr Staut book y Chors name {so}: int Price » Shuck bool bl] + @ Scanned with OKEN Scanner ad ic | ~printfC"'lo eniee dhe name of de book’); ~ seanf hg," 2 bLil name 13 Rint ("nents dre prit of bok’); a scant Cl rd"! €b Li. Price) > oo PrintfC\]o Dusiis of book") 3 Hes (i fObi Enum year: § Tan, Febsmarch AP, meu Tun, Tul, Aug Sep. oct Nov,oec § Void main Cy 5 haris, fos (f= jam jx+0e@, i+) Print fC Ad "195 weturn 05 we 4. @ Scanned with OKEN Scanner =ryredet jo a keyword Which IS_gensealy uedto | Tye a new Symboiie mame We che existing ram ioe ronan: ag: | Shuct Student - dat? i 7 int Said) char 5. name TioJ> float 5- avg | 4 Aypede F strut Stadent. dak 4 | Char §- name Cie); Eioth s_ OVgs | 4 stakes: | Tnt S-id 5 | @ Scanned with OKEN Scanner

You might also like