g statement fe acd to alter He
qo erect HON se yuaree by transfer
As control © sorre port of te prego!
(or)
[Fe ple stakernent allows us to boarmfor
of Ere programe to the cpecifical
ontrol
fate! here lake 1 @ alia! c choker
eed © label Ere deshirabion. Such that
could be transfered .
otro!
Ve prea syntax of the pe statement
is
F fo statement label 3
Frere are iO up of usien the
main cd 5
start « printf iCweecome’);
ple start; -
]Pr ograrn broonsl ra bina plo Stabe Ment ~
Prograry fo priné numb from + & x
using gote ota lerre ot
H Include 4 Adl'o-h >
min ( )
|
ink “number 5
nuMkey = 1,
repeat ;
print £ C fel In, outer) ;
number + +
TP Courker 2 = 10)
qoto repeat ; .
get che >
BP OP OU S WH - OLee: (curkey €°) ‘ ' \
£0 ew; sat - ea’
Pi f (pruenber jg 1 Ted" murober);
end? print F (fet)
aptch¢ dX
j
ofP Enter a number vay yan bh
ee » nurbth zo
yy? paper eS i { ('20)
EXIT vo ee fa lee
BR) WCAHea Layee ge!
. eng a. nangber | viv ce
aaa
XIE oe i ayy
1\ yyy ck renee
, As Y *
«
\ i
©) } ey .
*% yy
Vy) \ “fs,
Vydtt
\ a
iy
14So for ux hae been cleclavine sienple varia
Tre akclavation *% Ike
Which cechivs a Ainale Varia ble , ramed °
of rae type ee)
Xt ' aleo possible to ekclave an array ap
sewral element. wy) '
That wvans *
Tre = funeamental dita Ey pes Suc|
as “ink, float, char, double elec Can be
used to bandle Iiratfed amount of chfa.
But to many Situalton ‘Uc’ need! bo. hand
a large volume of cala. 50, 7} precess OF
Store such are amount of. data, ti gl
a paocr-ful date by pe that usu faciltey
CLRiciecok Shroring , access ing and oma np
of chta item.
$0,C language support a cbrited data lyre
brown aS “aRRay” tmt Can be used for
such siluabion, |
50, Nw what %& an ARRAY or Defi're on
ARR Ay.
An array i @ collection, of febo Gtcal ck
clernenls or — herne a neous fype Of cata
elermenks which are stored tn consecubi
memory feca Gor) under a comrnon head
oY @ variahbke cane
(or)
kd
An array 5 a fined site ecyicnced al
A) | eee) ox fl cel Pe. LL. pp. 2. F - &-
6% a roup of similar Fara Sy
0) oo i 2 aing le noe. |.
. £9> int ealory 0195
go ieolvidual values “iy ay! oro ate Callec
Te ene : My
acu ts ay ears around”
Ae: oy yar P, ne
7 tack e after te name » wath the
referred bo be the umber
ry SY DAT
it
Brot clewne
a
sn the albove crawl fea lar ee an
ave} of. 10 elemen bs. Tn this aray UE
can bor ealnric® op. iho eee Sone
lory 5
facet
Cor puker yeser VCS 10 eae
shoo) ali or ealary.
salary fo} 2 hoody “ral. [aj = = 60005
Salary (i | s 9000; y 9 OO ‘éalary (eye tee;
Op ivy .
Salary [| 2 g000,
He YQ HL nie
loca. Lien a3
abigred as’ follows
salary Lal + 80%, rr
salary [ ajl= ou I ealary (#) = 90%
ealary ae e ‘5000; 7 aa | 1} < 10000 ;
\)One U cece’.
“SRS of Muay
(1) Ore airensiom) = — ata
(2) Mull? dimensional array
Mules eeoetoral qyyay — Gbtor Eran ome
airregeorn| atva alt’ cam be Gorsick tad
as mulltdimensional array. { 1
% “Te compile AIL Fy
* TO vun'. ckyl a. \
* “To sare Picss FQ. by)
oo
A Nist of- elements can be glen one varia
name usi a subscript or ore difaensh
av such a vpareable fs) callie 2 Ores
aimensional array. *
Lor eq: xf woe, want fo «Shoe 2 4ct of
rumbers, Say f 38,40, 2, 57, 14}, by an
array variable number then ue ming ckdare,
tre “number as’ follows. ; : nig
ine nunber : [a]; :
ard ue corn puker reecrues fic storage
locations 94 shan kev low
ouroker (63
number L 1}
umber (24 =>
Nurndhke - (3)
number £4]
Tre values ko te array clerenty can be
acsiqred a8 followsVi at yy Ge 7 SECO SIONA| |
FoR gst 4 \ wer 2 alien
(4) Total mo. of rremnory lotatos lo be
- allacated by each Subsripe . .
declaration
is} \ Key
vairiab le name [atte];
. or \ +
Qa .
Here cota type S ciPies Lhe, type off elerren :
Frat will be stored fn ar. ANd . Such
am sot, float, and char eke,
« ate Podtcates the rraximun no. of
Clerents emt can be stored (9 917g,
Bae rok marks [5] 5
Reclares tho marks bb be an ona contain!
Tre general: forrn of ava
Pata ype
‘rane+ 10Q stg ey LS J J
Peclares Che height as an aed Contain,
C6 Ploaking point cloments.
int a [ico] an inkeger eype ara o,f
site joo char name [5oJ a char typ
array of slike 0
fram demerslra ting: One eloresben! sangiy|
Hern tn one dicen si0na| nanny and digok
tre aantenks «on Steen. Tia
H facluce estdioh>
HH incluele re
mQing >.
Iq aur [5)5
rab 5. :
print £ (“ enter 5 Pteger qumbets mi);
for [t=0, $6 =8 i f+t)
conf Pa) Ewes
Prone array glernentS on Keen ie
print: (are elerrents f0’ avag are Ini
for (io fess tee):
ee i el
. get cho ay
j
elp Enter 5 roleger numbers
10,40 2 4o 5O as
Tre elements m array are
LOUteO Oot Cito
: ce lor)
vo ipioligabor SL Se
ereval Foren of ‘ailialtzabion of
mle
values, 1 Oe. le are reoparate by
con? \ i
for a)
vat earner (=) = ? 10, 20, 23}
wren cathvalt Zab ava the site ma be
anette. EA ‘auth cased Gro) Compiler |
alecate> erough one for all vate
sleeneolS -
aa or Bind the bays cm
44 inclu, eetdiob>
tt inthe * Zoi. b>"
min Gi d+
{ _
rot nue: (2°)
eats nw la
urnberS
sant i 7 Keron
piot f fe Enter of d number no),
Fae ia 0"; 120 ) itt)
acme) £ (°r d ; k oun ('))
lav Ye num (eo),(| aa ree ere ret ee ect U
fo (i245 t20 5 itt)
if (murs [1] > large
tarqe = mm (i it i
printing avad elements
print £ Cin the clersents in are
are fo"); .
foy (ize, JEP) i+)
pine f ie feel j “eae (13) j
pref (Mle The lanpot -tumbe
fo. the array is ha
lare)
etch Cys
olP
Enter, how ao caliaall O
wank a
Enter numbers |
Oo, Qy, ie 3 8h
The clernents') mM TOG
\ oda Jo 21.72 pO.
V1»” ~ pice qed Me
- be
amg wage Supp
Strrplest Loren
wap Q\50. Te ™p
onal et the &00
eae DIMM
wed
. {
null chinen s sional
of rl
array, dimen siona|
fev ¢ To store O ee of values, a tw
“eenen 0M! array ‘5 used.
of values ca0 be given one variable
cubecrtple Par dirensioS
‘calle 5 Teco dietons ‘00a |
» if
A table
using G20,
ble 8
aia. ys”
prctiraliO? of fu. seco “gray: -
al fr of 3 ban citerertsiora|
Ss \(s]
name
and a uariab
aya
Tre
ee Java"
olomn Ste);
jot contri aM
g | the rea trix
oq, |
mis State ment declare
avvay mar) © be a boo dtmeneboal ane
rtatning q elements, (Bee 3 3 ‘ eobiitons),
Tuo dteen sonal »
craft arg steed in
shown) ; ;
nement as
2h C€ bp aierereore| “ane “dates
1 tee!) tbe ar
Slorcel fy 1 | §
weess Une recovely 1 Sly wir oh SHO
fo VOD,
(ek I
ack and ‘Cluny wpe. foto eefoyiey ee
How Eo aseiqn values to a x0 dfmnprst
Ara.
E-4 = fot rob [3} fa)
mata folfo] =10; 71 u
rats [OVE] ~ ne |
malrin Col fa} = 30; ps
mobring a (2). 5; 1
matin (a3 (aj - Gj; |
watts {5} (pj Fo
rnatrin Gah (4J = So)
motrin (2) tad = 905%
“Loftial een Tw dimensiona | aE i i“ |
We can inttial'ze, he bwo. dimensiona | av
to rout ple unys a
for cq: rat table. (4) = 110, 20, 15, 2,02,8f |
° ‘ st
Tr. Pet three elements will be fn 2 rawCMe: B- FOR TPR
the Btu oe
2 “a d 9,
Vv ther ?nto 3 hecause , Ur
“wy
pore ur : 4 |
cdrom is 3 |
column (3) fo
ow (3°
a
\
} Vit
ee CNL
cable folle] = '0 > ee a ne
Lipo Cathy. 7 20." nee
vue tole
. eo dimengo04 | array. Abghe
Wien OS Yahi ss ye!
can alo coy tke
fat eatab (a Cal = ‘Y10, 20, 15} (ds aye. |
| kh curly brace
’
; rou wo!
ve currounde’d coin, eR et
: ». a uivalently cori
c akeve stateroant: CAR) Shiny
mat gabe’ s Hele pe 29,16} 2, x8]
| jo bel goitia Ite
ipkeo Che anrag~ to, comple! 1] vod tagt
Lot | valucs, eaplrcitly | we a
coith all 2 i Iya heension
pect fy the, Ste oft Ly ; “
ke valves aka) yirpiesing eofien i! fallZat
, Lae iO"
Chey ave. autgwabicall | | e,
Wow
\ed FEES mea oa
Dimen sional Avro4 |
Dwr ow i |
ue can access Ue “Two Dimeosiona| , Citta, |
WC clements using Fodexcs. Thaba valye|
Starts ab O and end n-4,
Uhere “n' ig the- site of a vow or Cale,
*nt table (2) (8)
t acess 1% value table (fel, Sane
2 wlue table Eol[t]s
3 value, Gable [CIs ete.
Prograre |
Progrars ob eo t00 dlireeos tong |
ara J i ‘
colurnn
FP induch <6tdio:h S ° 4s 3%
H fncluce Sumy ; |
print (4 dn Tre elements in. the auray
ar nin’\ji |
for (t= Q;f20 5 tet)
priotf (ech "yw Cys
priotf [ln SUM =) Pod . AVERAGE = FL"
Sum, ova),
ngeech | > 3 a
O}lp a ek
Enter how | numbers Sw iri
&
Enter 5S. mum berg
lo -20.8° I 25
i9 ory are
t
Tre clement
lo Yo 30 18 25
Sum = 100° AVERAGE = RO
Orrte a program & arrange a Ie of
P numbetp Po ‘ascersting Order.
tf tecluc
ae fac luck < conto. h>
i a Dyfot Oy C1) ae i ae
arscv C55
priatp (' In tetera rrasy Sire
at want In") ;
scant ("4° ed) SN),
printf (‘enter ‘hd ute Je! n)3
for (= OS SF2mGY tay” i
Scan (" Joep | oun 63
Rs abrangisa aay arag naling owky *
for (i=@ 5 I Zn-l 5 itt)
um Yer dae % Aria
maine mare (5
KF t
* Storing ‘the. ide EO oe rolh Our *
Poe]
2) Pox ( paiftrha gy <2 ni Set) ed
ih Pred oe wis wy} :
f (npr C%) em)
WR! yb yo
le ra a Ww
ong. = MM, be "
Dor :
ay Pata} y
num {RK} = ap CTDs:
ya) coum! PFS rains
4 ape y
Print ("| ATER “sor WNGy "THE “ELEMEN
TN THE ARRAYY'ARE In");
tesprint £ (x a", num (1);
glch Cd;
J
ofp :
Enter bow rrany mMumbers u want
5
Emécr 5 nu robe rS >
Ad0oo9F ip \as, SF
: © Way, (2 "ea 4
AFTER SORTING THE “ELEMENTS THE
ARRY ARE . |
Wo 4B 44 5S 4
VOY) :— 7 |
Progress : Kia ily osck math
Progen t+ find ‘Aabiitbo ‘oP fu
sing fo dimensbral arrey.
+r include’
dt indluck 2 confo.h >
maint dD
foto C23 {3}, bits) ciel& J, hy
clrs rc S53 1 acc
. Print? (“Enter values for raobrty |
In");
Lor (i= ©) eas Tee),
for (=O; je3p J+).Ce ee
q
\
at L (“enter | ualues fov matin b In)
ov! ‘ . |
Low (¥=@ vil 7) itt) . ; i
Soo (Gags fess fer) .
ecaok (“yed * g bi flJ));
vavty 1a ¥eu!
Fey eis ae aly
cegef (Adel bon Of 640, matt ces ae ')
for (i 05 148) mE :
a we Hy at a
Pie Chad ‘J 43) HY..
YW)
etatile Shan ye EY
ca rit rosa ob ‘eco0" 'rnalrtes|
Pow C trop ressttty)
» “a 1g
- c. ; eh |
tor [4° oy Nees, Sth)
?
Cees
arnt Cmte"); V8 |
stew wr et NeFar Sereknndehawl
A string % a Sequence of chovacters
frat is” treated as a Simale alata ibom
7 ey key whirh fs present on be hea rey
iS constr asd a crovacker bbok ts Alpha l
Nurernicals or special symbols,
oe
Chalice
|
|
|
ste can ke amplerrented bq Lal’
dhrayp (allerrate rane far 26
® charcter Array ) 0
. Sing = chatacket Arre
— A grou of chatacters \defird beburen
cbuble quanturo marks (* 4) fs a ao
constant.
é4- “Hello world ”
> So 7 can bes abfired as te ore
elierensional atvag of charactere ard berm
~- tated by nall. charac ber * \o”
Keclaraton of. strings |
Cc’ decs wt supporé obrings aB a data by rf
powever fk allows bo represc oF aor
as ia charac ter arre
qrecefore In J Spt artable yeany
valid c’ variabe nance and 3 alcwa
ceclaicd 2 an .array of . characleis.
As’ an individual chavacker variable can
store only one charecter, eo ue reed any
a oF chavockers: to, store -strin | Taf
c dach cn cler Po a abit oclupies wre |
locaton | ft) en, arr “The oull Characker
‘io te put phe bre “ase character. THR
that te program can ell cohen
mS ch ne ARS Ltr eT bine rnachere asda Nee eee ever teed eeraee errata ete
Te ee
0 |
qe
: o
~gtrin y= rare wo (fte];|
we
the vo of characters |
ate cbter rarees
\
t \ |
is ~
the ae
Gay chan care (a,
chor aity Le),
giace Ee’ Reid » contains “aoc
7 a chal cker arra of site 10 &
i i. last character fo gvvatring |
ee 2 nocd cineca Tre NUte
. pal roe ee, efocludest £0 oe
cj ¢
jerg ih.
10
xe
ve ult
yarac Eek
| apt i :
Le age \shoblel be, Mayor! &
avere fore”
a ‘eharadters” im Ele.
fre omen mo 0
sore ee) ae
yal +
Pe ie YORK;
wns yvye
oO . “ x \
T , nV yt
* 56 oF & TS quill character,
had “bo be | q ‘alarrents
Tre | voason et city
eng ro trot He oa New YORK containg
Ac!
< crawackers ‘and ord Palernenk,.,apace (S
provided for cull Eerealna for: :
perrart s; ‘to “yoitiall ze a “ cHaracter |
cPfying tho ‘ro. of clerants
wray attroul
ay will |
TH) such cases, the ite of av
be «deterred , autorrva bical | based OM |
sauenker of’ ebrrent 3” ee |
E-gr char 7 r YR "9 1628'S‘ BN};
1
ery]
vy
Cc alsoDefies the aroy bing a5 2 Five ve lori
aay : ‘a 4
“ m and wee
fediog and venting “ur nr 2g
lermiva| , ,
wwe he a e
> Several furchionrs uch a4 can £C Dd 4
> Tre familiav Fopul fant hon want C 9 3
ante usd wlth $s ‘frm t Apett Ficatie 9
‘to vead fo a atriog of characters fon |
bevmntcal.
-
“Ege efor rare [ie];
scanf (“46 * mare )- 1%
WET? [fel wlehe fe fo pve
ot 234 5 EE 4G lo "1213 4 ids
, fro ram fig) to we [lez }
(nibal’ted with Jo:
Tre print? function utth ¢6° forme apeciti
—calion 5 used bo pitee Abrtog to be |
terminal ov acyecn. , q! : \
for cg - ea £U%s" ware ) 5 :
br 4 = % Ber, of rc
| Proqam told a -Aevies Of rarres and
: priot trem. ve ° ,
i yiy pf tacluek ¢-stdlto.h>
rvnit,, ff fotlude Z conto. h>
waranty
har rare 1 (15), rare fis] mamey 9;
Mey ore 4 is '
print t (enter 4 aurmbers In’);ot /s, mane ]) 5
scant Cs, narre on
acarl eee " earee 3)
can Cs") rane 4);
priat £ (tn Tre cannes entered
int f (| ‘hs In" ; mare 1) 5
int -£ C ee 0) anacre, :
et 1° | n ‘vere a):
print € a 7 Jo mame 4),
phe D3
are, (ns
Pr
fo 6 “corral ete
Bom Leveeical. Unerd 13 ore problenn,
noth gearf C2 funchion, 7 terentna bed |
La tpt on the first, asntte space 1
counter ree fore ef ptt! y bo Vea
enpce oe: 7 Hello world" y sing: x
will only wen vad Fello Jord ferentrateS
after encoun aoht ‘6g Bpaces.
ee rll
eat
TP ur want ® ead the entire: ite “Hol!
coor idl, the (we 7 baie & Use) e001) »
characker ane ah apree rate, - ‘tes.
That 6, & P
dar wed 2 (5), ward VE:
ecant (tes 5, ioral tt, aoonel 2) 8FANT aay Kad —1Ne THN biog
char); used & read a eine Chava cles,
choy rane (207 ch;
tol ?,
1203
‘whittle (ch | = Id)
che geécharc a
Meng Ci J= ch;
S itt; H
To print tre characters we 4 pee chart
print (Bel 3
By Lteoj mame [1] j= “lo, Pre)
A pat char (name y 5
j he bys ; /
fpput Func HONS ,| Or \ ‘terraration
9canF ¢ 2 athe "space
i
get chart Do “ny
gets « ) eel L In
Rare tesee |
vinef Oo 2 = au theke three Fhe.
is by covepl will prine the -
6 C aS :
me ae untl (€ veache 3° lo’ '
puts Cade
)
when we use mpul funchon Acad? Cory
a trchnriiny. mere’) al- Fhe Cad of thea ind Ce reer eet a oe
“ort! vio? as @ ered of He abring {eri
wie? coe uscd output point eee |
- putckar > (0) put acy)! te iabtll chock
Por 10 ard ef re found Jo rb avuterna bially
1 eat? a& & ord of otrirg ard print ae
| th a
Cumcten
Ee lo | read character string |
well ave
wontte apntes fro, fertnital f3 by |
opto > Purclion
rentale 5 |p - hue foutton |
a t
gets > om agers a
clei aa Arey mame | |
Cha pa Pay | |
Fah |
get COA
YeadS Aravacters \i
jbecatrel urtfl & wewlire
feuineadt and ben angen
bo eh ae
eC Abtog, +
Prog raro |
Program ' b “yea @ y ray iron OF Lent. Ga
tt rent eto ae
clude £ coro. h->
|
|
reain ( )
ee
prigt F (Enter @ [eve of a Wl
ae ts [Eexl)5preset CT re beak entevesr in in)
prot? C yes", bert),
puts Wort);
etch ¢ d5
5
ofp |
Enter a linc of tere |
Te tert entered f© tela tne
~h raed Functions : ae
c’ lanquage a large Rola: oF String
pana ed
Tre standard ~c' Mina labia a 7
fuectiong rea. pu late Alri
ina preqreim aL furchions Ged ate alte
Called as and banal’ fiinckions aphich
are used ©. car out ot rel man
~lations, |’ke a Bbrtons toqc ther,
Onepart ne ef eo brings: fi has Hegth
of Bering « eke. |
AN these Sbrtog! fandlers are oy fosice
ae}
Z String b> reackr File i
Following arc Ure mnost oo usd
BLyin a Vand Ifng func tions
Furchoo Ate
Aalrcal C ) cone tera Lion ap hoo eet
stre MPC) Comparing of bwwo ht
, : to
i : ; Coptic & ore atring
eiicpy ¢ > T iether
a) pe pS Ali. th. loeth of aiiqre MAT emer amet
to include Lott
work Ense find’ ton
¢ > furclions
vw now
fo functions |
tren. 4) |
take? Cre shay foven
myye po Bey
au t
stveo-£ (atrin dy, S60 Qs,
4 and abring 2 are charac fer arrays
Ure furcb’on abrcot & eneciited
(5 cappendles to * ae 4 OLE ders
the “oul bahar erneel \ tte,
pay » bring 2 bow
ogaing
oC
nh? heacky
)
eg used §, Pp bio |
aa
verrovi
of Bbieg 2 aw
te ts “ak oy a.
io spiel fe .
ety ie Soa “hoa
GeEblYl,
pan
Ts wil [ve ULE
a eo els
+. & Bie otY sTOL OT)i
[o¢ cat (part 1, part 4)5 |
pH seiee
Crecution of eis state ment ees |
: D/ 10
pat 1 > we lel vl_lele elo TY
pat 2 plajeld 11 |
ap ux print art 1 after exccuon af |
concatenabion » glaterene. |
print ® Cthg" pavbt)i -
Cut pute : very BAD ee
strempt 9 funchon
WYO
—» syntax fe keep = bing t Atringa ;
Tre Strempe 5D funebion Cornpares &020
Sévtogs rdecltfitd by He argurrents aed |
hac has a value “OTE Peg are equa/ |
: , cmt
Ube are Oe gpa Th hag Ge: curveric
dtforerce lek woten “the first: pep ciel
charackevs tn tte Aen. |
co |
oops OR abt‘. eating a, te redurng co
if length of stig a7 Ani Rie ek
value. * & : - ar
Eq- cror city [23,- Madras ” |
|
char baon Fao =~ Varglore
; Secep (city, fouon) 5
whith ylurng an integer value of =10”
abel te thy Poepnce ONC ASC QueHy err
of °
andl this difference Uralue "Sasa 7
aa vavtable whith declared es
; d= |0a
E4- fot 0; ne 10
ne akecenp (city, toon ) ;
q's reburge ard assign a value off
able which *s drPferone of |
of d and 0:
atc
Qol
strep (rare d rae 2)5 char raver Hee
“Pars
EY Ww oa & i
stremp (Ror, Ram ») char rarte 9 (30)
Eqn etre Her reve”);
sn returns —1, ahith “S ber ure difference
of bist misenatch character Hat oot
string 4 and* roe string 2.
bo Ax value of 2 105 arffererce fs
’ & cond fv (to5-114)
-L value fo he? atring és aiphababically
ane abi’ Q.3 ved A 2
ulue ‘1S baye” Beri?
akove sling’ d »
ebrepy G2 a
ire SErcpy fisaction’ cepics contents of '
i string tate anobrar ae _ The Strepy
faction * warkS almost. slike ax. 6rf9)
aeganen® opevolor mk takes be! fol
foren ppeanesss
‘3 alphabaGcal!
vty vy |
j
'3 @ _ Pome)
to alving. afi
alt corstank,
anrag variable or
for eq: chav very (10)
strepy (eg “0etH
Will aagrgn the abrtng * ‘oeLHx." f°
4 variable.
| _, Sérepy (eesGirabtn » Sou
Eg ir inant 2 a Alri
char string 1 [ad] - \ ener
char alri "4 2 [20] ;
abrcpy ( string 2, a L) 5 ;
print fs i Qa “ye 5, slring 2);
’
After eyecubion of Chis progrann fe worl} |
asstans tho contents ef Abring 1 variabie
ey bring a & &bing 2. But aleoays te
Alte of array ‘of: ‘gbring 2° Caens fo
which oe iG bo copy) Should be lage |
enough fo vecetve | Ere 60 bcnts Of '-
seig fae 7
open CD Banc * ein
Anew unc rion © i
eg used bo ‘count and
number of characters (Nn a)
Finds the length of a bing
“atRte ‘Pudchon |
velurns the
ont areans
eereval! Bro o's
Oe arien HD]we
x, aa, inter variable which recer
Wg
ie
of length of bee string Th
N IC
ends at Le firsl null chavacter,
choy naire ECR cproqrare
' tot 03
ine gerlen (rare. ) j
- atic) refurns @ value ¢. |
dermorstraking Aerio tavellieg Luncbon.
+ ‘eclude eAtd ion > | |
acluce zconte h>
+t 1
pe tee jude 2 otring -h>
mont Qo |
chav at (20), sev aloo) str 3 at};
wot ty tide,
prot t (Senter tun A brig In”);
Tone, (fos ss Ser abra)
compan » 00 arin gut a Aira ¥*
a =) Abrerop (strt, Stra) 3
if (w= 29
"print BU p string: O° opal ';
eealee \-
pies (in string are not equal sh
caterabtoo Nop! Lavo! pegs +
atreat (strat, Shya))
tri= pS strove
rf Safer corvateratroo S
#6" abr strd)
copying of bkxo skrings +
atrcpy (str 9 7 programeniing “) ye print
|Bo
di 5 6trlen Cetra,
Ig = atrlen (str),
ton = otrlen (St 3), |
ovint £ ("In stras ps leag bh Ted”) str a4).
printf In gira. 5 length - Zeal’, stra
print "In 3a - fe length pad" sry |
FEchE 95 ‘
j
olp
Enter boo abi
er | Toput for Ewo abtings
ogra
string are ret equal —scompar'ston of Guo
A Pa
pan carnputer prey rom—> Contatenghon af —
ba String and —
al’3plays q Arig In |
by Sra
atr d= poyramniey ep copying string fnto
tra, and ofspha oti
io rd
ety db Cormputer lembh _ yg
u “pr yO.)
Ae = program length ~ + :
ays = preqrara ning lengeh =