You are on page 1of 5

ASSigomen o o

hal is meon bAeea| 2 poin h


aFeay d h example

Astais defined aS a Line calast


hic holds a hom0genouS elemen emen
Segunfial andndex foemal

se oF esa
EFa1 e Con Sto
elementS CT he same ata pe
niains rultlples Vapiablee ngmes
name dSing
Single name

int hee Cs) _1o,20,30,40,50

hof cee &he types OF Asea


2
afsay Can be diided into ttdo types
.one'o mensionc ABed Sing e
Multi DimenSianal Aefa

pAe BtmenSianc AEsa -

ha cee the uayS n Dhich We (on


initialice eement
We Cane initiaQISéS
OF as8ay
CONh the
ce 8a
Tollo oing S.
aS.
int A8e LS 1o,20, 30 40,50
AeEJ J l

33

mean by dalo S|6uctue h a f cde


whaf s
types OT Dala Suctte
sthe
pateiSucfue S orstoting
Date

Reptesenttnq
he ata in shd

TyPe or Dte Sfuctufe -


Linece Data S1Fucfofe.

Lne Dala Si6uctute


tlon
DaBa Steuciute;-
Linea&
Such Dala st8
LanLioea a d 5FEtHHde A 8e
which aCCeSsS the element in Lines
Ctue
example- A68ad, Linked List Sta ck
oemat
Queue. etc.

lon Linec Dota Stsuctuee: -


he el em enj
hc h Can aCCESS

a tHonLioeo f oem a-f.

Tece hSh, Table e


he 045 Inn Oh ch
8)hat ae InJe Can
ailocate emo Toe Fsa?

ht Ase C&)
2
L2 484 L5
R 12 116 120

Aee O L4

A6e [J 3 a
AeE [] =
14
A8El4 15

6 Readbeloco Stateme0 d89 is dig


atic RepgeSentaon

iot A8eLs1
Aee 1S one dimenSioneQ q 8sa whith
Contain 5 elemenf and efement S
T9pe nteae&2
a int be e L5 2,43, 8942S
be1S One
DimanSidn a As s
Contath elemen f5 and
each elems
e
j
1S typeint 2 initielize
12,4 29 c
Jhe fölo p6oblem
he Tollout?.
7DFlecl
IEan
Sden
8ErS7-12, 23, 45
65,871;
int
Siatemenf he
the
aboveP
SITe br
3 Ond ethe Value
AEEa is 1S get in
Intiodir
EEOS
5
So dhe
he
Qbove Safement

2 1ot beeLl:
n he above 5tatement theie
S no Value+A+Leal Sie In e n do

dhe at8a To êsat MuSt on Fain

M ee han element So ven Stafemen


S Ld o n g

s ) int ceeC 7 2l0, 20,3o


he above statement e theg
In
i s no Size 1S iven o the agsaatBa
O Size
S0 It Conlain

4 i n t c ee[3+2J 7 + 9 , 3*9, 76, 9-

he GcdHon 0f
Tr dhe qbove slaf emen{
S1ze 1n not PoSsible I n dhe ce
Juen EEy 1S WEong
AIha} 1S
mant hg
ExPlain Lidh SiZe
size or
or
SIe of
Opesat0 e dpetalo
dpeaaOEg
The stre
SITe Éequiod O opetalo6 is
Toe he dhe
TMnot allocated Veeiabe o8
Toe dhe aiven
Todhe aiven
e
ement
tt-6zeo int b:
Site díCb)|
Tgives byte ans beCauSe *h
bveeioble is oF Ype
ele men inleges
n and intee
SquEes byBe MemosH
Peed ict dheoutpuf DI beloud Code snipeef

include <Sio.h> b
iotmainc)

=9Eet2] t 2 t gEF[O_
PEInI(llts d"', x).
6etlen O;

X aE SCet21E9eS[oI
5 t 24t 1
96
t
r8intr'). 37

You might also like