You are on page 1of 6

DATE

ASSignment No-15

What ate
he tuwo hings in C In
d Hich ts name
s fnlegnallConsldBcd aS AS add Be ss 2

Dhat s diTfes ence be asßat and stsuctue

Aesa e FeeS o a Collection ConSistng of


elements Of homoqen ous ata TY Pe
Aea USes Su bscei pt oE r7" Squte
beacKet Fo& element a CCess
Th Sie s Fixed and is basicall
the numbe8 oF emens nulh plies b the
the
Size of an E|ement
int Aee =5 2

A 6e 2 30 450
(00 104 lo8 i2 16 20
Steucue
Steuctuee e f e e s so a Collecton

ConsistHng
(o nsisHnq OF elemen ts oF hete8oeneo
datatype.
6teuctuee useS.'I o lement
a cceSS.

is not F xed os
steuctuQ e size
Can be
Coch element of Seucte&e

dIffe2en fupe 2sire.


DRTE

exomple
steuc Demo
f Value;
Ploat fvalue: (b

In 1No

Ohal e
on
the mjtot0 oF onion,
One
membee Can be
Paeiculoe pesiod of me. accesS ed at
non
aloCaeS one
Singe Common
emoEL Sa Ce to all
which aee Shasod Tts data mem
belh al
ot hem
hy We Can not intieli Se
Seurtu-ee i sec t at the membess of
declaeation.2 me Of
Because ohen De
hel8 1S no nemoEy
declate dato tyP
Foethe Voejoble dho S
e allocated
n ou2
arm CEeatee
emde IS allocate
Shen We cde ate he NeB1able
Can
Can We
We ceeae aPointeg hfch Points
o Ssuctuee
yes We Can CEeae -
a poin e which
poinFS do St8uctee
a a Poineg
Uoe lable Can PoInt Jo the add6esS oF ga

6euctute Vdeja b e

Sj8uct deg Dem6

int agge
Ch cf hameti6]
fta floa fvalue

St8Uct Demo oob)

SeuC pemo Apl8-Demo .

SEuctuee onion a e e Called


why
Use_deFineddata ypes
Of sthe eammt
3ecauSe he USee PEOg
Can deci de Hou many elem enS
anq he eemeniS
hat aee
S o&
tYPe
in
OF
S}Euctuêe f
hatINe Can
UnIDn.
DsoU he memo6
uct Ee. Leyout OF be
Stsuct Demo

inti
cha ch:
ouble d;

Demo

Demp
Jo J
03-
A
pemo ch
20 83
T7 Demo .

StEuct Demo
int aEL3;
float F
Chat ch
doubled
h at IS mea

h c MuHidImenS1onl
haS mo@e multhGImenSiona
ae 8aY S o
9, aP a
han one ImenSI on
nt
Aee C21I

Read he
9 below
Stafemenis and d Bo Its
dlageammatc Repee SentamonS

Jnt aeg3 L4|[;


ae 1S Theee DimeSionaR eEayN

int ouble bee[2I [ALs


chak CoeL4]LO;

heeo
ich t
DlynenSiona

Cee is Two Contoln


One oimesionc AeBe Contaln
4 w

Cho
OF T9 pe

012 45

oA B CloEF
LGHT GKL
R
2 no

intdee f6L3
dee is Two Dimension
c Ase dhich (o
a n e DimenSIonce
AEea Contain3
ontain

elemen o Type injegeg

10 12

18 4 15
2 1119
9 2 0 2124
429 30 5

You might also like