0 ratings0% found this document useful (0 votes) 93 views143 pagesNareshIT C Language Training Notes01 Balu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
pas
Rs - 160):oP cepsisa. — © Pieghaeming darguags. —
SO ks Pore US indunidatat: Sertaad 0 Aigetetoed oudnerated pre i
ated ay He. Gren Wi qraphict Mlévkare ie cuadlable, than ct ce Callod)
c ary abind 3 without human Alivodtion 2k Wu peeoruiuaperl: ay ae
cued quite rratect procov
~ As dyenons dia cotectien A prog roms. A Program fs a etd “nttnuctions | dhe
js daatqrad how a panticulex
(oi dy proguoms combined Aapihs: jn a Hage ab thet a colnd
Behrens Boot oy CAAAra Comp engnk
c
© Ritnansn ane Clawr ted ats gayest
@ Syren 610
r BD appreodion dao
k © Syste B10
Yaw slo Ee designed a geranad prpee A Adeanat Comte ony Limotations,
ee ee .
a YoOb tr Ae ialdefacn ActHece combrrant dnd — CAyhtonw
omg OG ewe abel gS feather sank
- wg a falter Prtpanty
7 © wppveation gla
S ance slo % designed fn 2 sfeeche tose, a & ened atpicalion tw
a” YY Ahoag aypbicatiin Adshoare mands fe be aust thee fpentittine ters
only ead ipo aBhitly soya Ak davigadt pr on
6 & shadd be nso
A Bore OraRlL, eng BRR, vy
em Y rads U on applietion Sépfinea, Wit masta dots in |
e) ,
5 VME Hy a Oo TMESAY Prduch wrth maintasn inbrmra'
o Aswmont tro.
b Tony 4 an application gy which macntomy eat wlohe (oho Samy
O ~ A computa 43 On elechovert damce whith adnpis She data
O 3Prograrming. saequage :~
he yeolad tind of otractint ah & cred by ommmniiate oh
nto tee ype, 2-4
= Peageanmeng angyagen afro last ae
¢ j 2 Mip Lovet Programming Magiore
WO Neel. Programming laut
Bape: Lonpage
+ dhth | prgpemny ie gyrinchinlly Gerla be Org arch te candoaSdeuncd , ce
cotid Hpplovel prop ye " “
~ Rey etieg UL. Palgy Languenays , tat dan dosetep wen érlens
er- Geit, OH, UCL +, TAVA, Comm, MLRL, OBFEeTEUC- ¢
2 Wedleved prog. lang. :~
~ 9 YEE Progreemming language, Qutwuchnany ail te tee fy Ko
ror Ao tary remeber Qtr dstruclinns eBGhe com Sy blo»
~ By using Lom leet Pr] Lngaages, m4 ama deetepig. douie
ce applilations \
foptae ferenat and at &
deduce
haw. dvbver le a Sytte S@idawe Compment eshich & wld do germunica
an application tehtedare egiiky Wadied dat drerp2sn0n
= uel preg. Wag. ig atte calzd Mtemisy) Wingo
Ge Men londaiie Prog. langage CES, GOR6, ED)
Cl PROGRAMMING ana
—& &o Kptent, pocedume omarted , hructumed programing lonpay
frocaduune cian & a amagh ob ansiging an cipitation tn module Formed
= Topdewe approcth wets Uae Ipemat!
pdveningas C'
Si aeoncepl of cawayig AE Cnatruces
¢ opal ‘a
) fo Onttod Stoetear od Progainndn
Sap ome Syste Jo 0 ay
ue Code of pike! o-
ES
© Rardin depen done
= pip Above Roser vation, down ut ane OPE yAROVIB yo
fopk Bind WINDER OS. tan HBO POPES Lecune qaRe
5aa see gee same
fore tae Hee Oho un-ane dagig © ry her domthig Seay Line
indy / Lente, they TH ABeret wots $eAe gash. Codd & dild oront
= ON peg Wnguase % ator dopendint ard machine. Ptdpencteo|-
Pegremminay language
Cdoesro* dapand 7 headiiage Combo nants Sf Uke Sten’)
-@hie 0d are Goaveeging che-appicettn flu bom ome Operating dstian to dnviter Os,
Sy Sh eertes propesty 7 then £4 called Plotderm Oetepondant*h ca-deeie Dovtyy Hoy
wt fe called Platform dependant .
oman
~ OH e cong of Biddy an appitatin elo Lubmedulag - be. Procadeere
Quented abproosh
Ogee
~ cl Programming language Gin fect Hoflevel tnttuetions wh UG ambanakin
Arlao (aves Prog rene 180) that "5 mohgy OF aatted ame
medals lovell PIAA. lAnruageo .
a Guess, a
~ BE preg: Weguagn Gntecsally Smélar to CaxW Grd. Warered emcaphs ave
Gvadous
eens ge
ais
Foe Sabhe ee HEME Qoe optatins ano orig i IME falp of a
Onmyy, wwe:
© spon Spinone designcag , ie. 0.6. ant Compllens
QB Awpianey ge dsigotey | 2e detatmes and once sbeoss
QB hei Camp wotenpHeol equations (in bo evalseated
@) Gaaprics wolatef aparation, v0. © And) mabiie re:
Hictws of C? tm
Raden
- Uh Preqcor mang language term Started in Ua gone ds (9% etl lar
cated Gaggo0 Foxton
aloe dorian langiog » tha. cart Pg arg. evaluated dalled Agel je ae
pormenyy bpx algoréahantc language
~ Mee. begining 4c it soot tn ug. {oe 4 bE with Ue language coiled
BCPL ( Base. Combite. Weprunnag Larquoge) » @hith % evaluated by
Mavtey Ry'dhard
Prvginmming Congeng ¢
age
7+
J
PCE
J
CdS 2.—S #0 yea af AGH, Prom BCPL Me. ener preg 2 Oualuatocf 4
= * Kor Thom 6”, ¢-0. cabrod Blan guage C basic a9 cae ) «
o : a, Derre's
= 80 Me gens of ata, ¢ prog. Inaguage evatiiaded big” tym REECE C™ gy
MAT RT Be lataactbonog "Boy deaclopig
~8» the Yow af les, C/ PIG: Wingiage Stendentns by ANSE, ak Wosiem &
r Glog ANST.C_vorcay
p78 He spac wf BOO, C/ PrOg: Language SondamruDd Uy TD, that vest & s
ano ee
phanecteriewes gp c!t-
r
Oxeysese da weservel oR, arma -mtaning-t ateendy allocated to that—word
ark tot mapenpan meaning can Ctengrdres Sy US Goo" '
Bn Cl Prag. Lnguage 5 HoKl TOA Meson are 22
€ Yee while, dor, tp selec, break, cong , short
CF @ opevaters t~
Yor te espentat KAM syebot , heh perbren a pan eutay ss
yen cpa fonqiage , botnt ro af petatess are 44.
-
e VaEH HK eek
© © Sepacaiers 1
. Sy tig hg Seperate 5 a ao kepasate On Lndliidual Tenot co! se:
Sy de Ce rag. anpoge oAobat me ap Sopaatos ane ID
i
oe Bh Tea Thy 7 oh bop Bp gpanee
a
Gh Gnstonts :- ‘
e UY orie @ Bixed ene , payer te Changed) duning Uh eee eens one
c > anstants ane classified tote 8 types ie.
A 1) atphanumes2e Cans tante
7 » CUMCETE Contd anit
a
x F al¢rantemend Conrlart, aif Gn wep’!
Ba qffrabak, Aq gperatrg | 1 Sopasatrrt , OF num é
mn goncinnds Some special Mond, symbole,
ws = Undoy AkpRAN ERD Gnwhunte nae ake Ba oh
dato vewe ,1.0 Chet . “
r 90! Prog. langage.» tetad es dy haute tlbso
. wun Laas nergy wel Us Charali, cy Py
must Ena quctaiin ama Cr) only.
7: porto We sagt Yrtkad ory ange any wntend & a
called Choate Crngtont
he @ls
en ON
yGumortc Gustat)
nig etn etemertc Grortent 1nt-ean rpepesent vats yer dre
= Mumestc Gare ave ckauopted Ivo do byes. Goh ass
Be Ent, blob
= Whee a, nead 10 Tepretont~ Ud velucs Woe N aen Sraee
Procktrat puerta , than sper an tntogor type
ey ID, HID Asds Lge My --
-Ushen we ned to aepreient Ihe, value date wh dractena
Port, thie go for beat dye coil
Er UES, TAT, -1F- ETE
—~,
GX Sal, hloak and cles ano Called bate dulndions 66 bgsie date elements,
eeaute any dil 9 eombeatin df UGie treet type a, ontiane
goat ony
© predabgnadl panction +=
y aH fanottenalityy ef Us bunctton it abomon clay Lmplimented , which >
4h available ing soit temper
A
Y ALO programmes Whenever we. need ty Porfprn Us tesie, thers Stony
wimeyatoe fo call preciiged. enctfon %
YE pri O, Sank, cleser ed, gebhed , ak oEC), enemgebld, a
pwehers geline >, getdate) s datas cs, aupesme 6) ,
dear), Buncat o> ,
Sgortose a8 %
; - gery proquaomig loxgeuge te called Syetoe
G Gromwan Heap Pregimamby longue a ~
sie, tart Ue 6! language & Quer Gtatemsat 4
ends OM Soenctators (5)~ OPERATORS
eet ane
C~ Prog longiago .toint no. A opowatrd Aee GU and dapenching an
Us operand = Mesa comple, cperatrs oreo Elais ted toto thee types
. y unary
"y biramy , g.
= i
= m7 ertieg.
ec ~ Wn wt aye ey wet Unany operate, wie veqeiaes only ons anryieeneat '
, Se Syren eu Ke hee po and dorirory erates Hell Beqctone.
© Bksiirmertghemer
6 = 8 & a nang Bis gory operator LOWeH wguiyet hoo > ands
Der Uft) MBA! side av gemnent
-Ohey 0 Bere whew kiing DML speratin , <4 ary one A Ua Crp mont
di, Sorte Metn pn Oleg, then WH gees an Cover
— hen wrere Comey OO C4 Arron Cpr TetT, then Lut flcle arene,
mnest Ge. vatarcesto Here only s and Rogetstle aoraumont & aplonas
© en Lee;
© BEAL 1O evwoe: Sabement ervting
oe Bat; to
Os; ATW! Rolle mequogad
fis; Orrar! L volun wequiwed
a Ferrer: L vase taqesieeel
- venlale pe
— O Agdtbomatic Operater 2
endl ptatadin
c J: f aoviven
c ort femindes
z ee an
. was Sebbactin
pe © AL qnatimatic efowlers au binary operators only
ro vv dp tmpltane nttton » Brenenor a7 Oxpoersion erates wesethor *
. fon tnordoe to evalusde Ba Expression wa Teautee fp
nator)
wae per WE prtonty ahh cheratar Gntadns hegest |
_ evaluated Fisch, ahichone catains leash promt thotc
evaluated at laal
r 9equal peony a oteanod , xh tb te ge sponte ,
my
a
evaluated Awards born
Gos whenever
then nacd to be exaiiaded trond fom tet to wap
i ER enemy efwntin, Les oe
rekall—te lob
y 4
“
oF
OO
= 9
_—Bugectiong = s
© daw; ® ao 8
Unany = samy ow)
oy oe Sopa ase 9
@ a sora SB mre
= S4 ; evry
© a2 6- ; aver
sor oy,
~ Whi op at WOrAg +, ntols ten . ; ~
oie au ‘4 uf Ch or paKe oh oomy Une ng _
~ WD WD gprbel Ge ovatMte Lebece UL choead aa
POD of enced el San ch
vous that oun proton * Ch ea Read ey
«ier tol aval aed thi Opecand thor 4 Inbllabey Ueland nak Zz
Speen, 20. nang operator \
- BY A= Rte Ke atD Seb a> aw ae omy 9 ey;
>
= I4b +e eo
7
5 Btacuss
~ Gparater behaivicuwe ve alinat, VOUALL inteperdont only thalte ipendink
dy vowatie dy type «Bs tehewtows A cpoeton Una changed
~ operstia keheniant & alana, Operon cliperBant only that x what tyre oh Up
vols (oe Ge pradddng paccerBing Tl yor JUS bohemian dh ts «
wo chang
— hen ae are core th ny ecole pinay Opecestoe cfs bo Gequmante Ane Onderers , then
water value ie Moe ranwene at te arguments i bloat or oth ove float,
wotwrh vous ete Wylook typ -
inks tak 3 dk
dnt teteak > bla
look, nb > Heal
Moat. peak > buat
On discon qoetior , wtput sign url depend. Up numerradte
and oconinat 4p Gee er or
&
tren
= 2 ONG ona Gee aorgueent fe mv th, lp —we , fp bot dec
norco Veale gall be cue \
= Bm dO Sto Operas than VE RUmevadey yok & Wathan 4, dono mOraten yatue ;
then reahern yalus & 220
tro dimles 6 porcber
Wwe
Emmodultes Opsratn vehtrart omerndes value
~ Br cro diitus epmatos, aul pat &p wl Apod on qaumaorcedes value
=O -Moeduls obewlee whey Wan Numerator Wale te loss Ua hen a tuo
ston ¢+ elon nusnerater vats ax USE ethin vate
Ray
a
Ue pg 1 oO Ww as lévqso
@ wrt wr arat yt: 6
qe as AE oo os wxge¢
WD G- Is 4 Blo AD
aad
Ft1S
Url 5 45-015 42
“MUS = bend (oro! b
HUTA. S me
ps re PP ModM LNs opoats is erty of +
als f
They BA ane Woreing web moduli
sequins B00 an andl balls 02
aes Be
YR cart oppiy few Atoab otnio
il2 Ty lmplimontetton costen we oaUdre to fd Formatrdlor valet a beat ctype
teen gofer fF med 0) or Pmodl C7 oe
= Lod o Pmedety oe dectoreel % moth. , oy usa Wg inci
we Go fed Us eomairdoy volt dy Yont datatpe - ‘
gre teed (nid);
yotut = Pmodk Cid) ;
I ar ISE 4105 Q=\sB/lo; ts
a. ot WUE gasilatf io, ie
3. aeb{ tts F Q= Blo: 8B
a. Gr oh TLS o = B5/to; 2
$- AxlO%1O sd a > loftoy!
a= [tos
6-2 ShElOy
HE rplamentaston rhe 2 need te Licht ne hang res ghar nese,
hon dp her Wed of 1 CLIO)» Th we nod fo wmovw tha fast dot,
hon gp kos Bovided ty 40 C/o) -
@ Rolar'oral and eagicat operates
Ren OR os f
~8p Cand ct4s alk melatdaral and Logiad opemitcoy ceduens Ade 6
= 9% eepression & rue Hen aeherns wilh “t,o aepresiien th falda , tho
sehen ith wre
~ Every nam oro Gr Called) rut Dhan the valtue become ead, obo fatse
a
1 | 6
a
oy
= b.01
= Rotation! cheraived Oa o- £57, £5572, oe
logins opirebae Ot BL, Hy |
Det gdh
td
as 4 | (enamy)
ed, te
+, — (Bhenyy
oe
on aes
2
(cordsttoneh oppeat)
2
»
ID at)
oo
2 PWS] BaD «
2
od@® az sees
7
é
5
€ 0?
2 =
. Ae Op-ed
Oar agrrca 5
co 2 LZa
-o
=
eS ® a= 672820;
4
® a= ays-sacs;
2 Orch GTOo
o 10
fp Pte 1°
S Mararsska
OxadL
-@ cad
@ Grarsitsog
> OLRO
=@ Tee)
© = 224 BRL
166120
@ Ge ayy sOErs iio
+ Oletobtl-o
= tel O
ER u
Qe spaan ges
4as1-@)
® G=tysace ss o)-27s |
sal; @eRO!=
= o19-©
®
14
Tre® 11)
TE TF
rte a
FE
|
ot
re5®
le OD
7
Dep Ade.
HF SD
xGo
2 @ a-arsuacs @ a@zersiisca
= od £4.08
r ® FA] -@[tary
@arrcspers @ ae tizracsuor-r6
ar = aa = tl-Lllorc
!
> @ fur) - 014-6) §
© @ Oo as}: Ot dt-ars
c + dls0uUdts 9
c ca im1: ©
Vf Bro wl arn werteng WA logccal MO spevater C&b >, EE won! ony
f fog anpements , be bt aad ight ado anqrement
C4 o Legal ANID 5 bol express O40 tee, the Ui eekiny Valus i hue,
any ons of Ui eoprowion fr false, theo aetian value & fates
r Pots
¥ 8p alo gota OR opewatey CHI. any ane Of Ua eePwH LCD xe ue, thin’ orhera
(Mature Oe Ame, Uh woth ave Falee , hon vekeen va tes
np e ae
© @ Oetyod @ a: ters)
e 2014-0 oe)
e @ a= ars 88529)
c + 1 ee Oo = Jord
‘ ;. faye
=U Prguowoning language & a Cow-Soniridve. language , 7-2 me)
lees Ca4e Gnient» both ava. dékboren b .
CL pn cr estag Reyer predaored Apinchiime dro, ouailosl te |e
aG8 void mary 6)
Perf CM Wel camo”): 7
‘
, cr) 7
@hin WEave Derkeng dO any Chpregqaam , CUEB Siheamdl aver =
racleenunted C as ona oreld. manta nad s on i a
“ee § d° g ,
doesnot wee 40 Go doy GACO+h 4 Con'o-h e1g Fe Oxtenion
wu
ho Keyan sabe Trddcodas , Pet type thE Poppe Pacnct-ien te
Y MONE) fe an VdOAL Pew , WHEGK emdleates Heclop podnt WD appldcatdom w
vo Ng) enddetes Halt Oetmuctasy Book te Stavted , “Y) trdtateg that
ensue chion Woon & ended +
w ML WD Giatements A Uta. praren should be wen Curly brace (XY "enty ,
Prine? 0
S08 fe a gredefped function by uring thls funaidm ww fan prand thodake
ot cone i
Y SeberteWe nome Of WEMDevies fe Called Consolo 4
YY When OF Ase Garrick Ooh LS prinkP OC), ¢+ can dare any Od Aayements | +
but est avgument nubtbe @cihdn Us dotela quoter (1 5 only ome
every emrgunent srenuid Meepecrahed ws coment (5) °
“y cORtRD UN disuble Quptes , ohadouery we Pat Gt bring? Gh & yeh)
Ong dormat speerbiens Ome thee 4s then a = . :
4 f 0 cepyhy YE Aype dd value
fiemat_ genus: y
- Feta Seerbiou Aol deeds , hat viendo aod ck printed on Connie a
wa ~~) ink age
Le -7 Fleab )
ke =p don ny
Tee 2
=Smatiest unit fp prg ron BE a0 ddevidual Grok to begren
coded tone .
Ao prepa is 0 callaction af towne _ 4
~ Token can de ucmorrd , ofaratery , roporoitey , dmstant and ony slew :
adendi4cers alte also + as
When wfane sdonteg iSeth Uni tounn , noo Gan't Splat co bream. ls ctueny |
Hout feboein Uo totens pause (0 Give “ay moBh AbCCES fobs and
nedtine Character, 1
Prt FC eateonot)
tip Exel 6 dokers Gt bs broker), += wain
c =
- > 3
re
t
Ae prink£ Co BELLO DS HELLO
co a. prent€é C".., Hallo”); Hello
: " ager Hello. +
c 3. paint& CY + Ueto y ee
ie 4. pal: Coed weline FA “gi $0,209 5 year + fu nctin tall revsing
ant eC" Ha wells “FA, 10/205) 2 Error’ bunch Call rset ng, \
ie ca Skebement mcsing
gpa f PA @elame 7a", 10,20) Ener
A welteroe Ld", 10,20); fy 10 twelteme a0
ot Pronk
“ e ae e
B pun (td td zd% to, po,20)) If [02080
a. pen ("Yd td vd" 10) 20,20); Ute 2% Bo
r yo oprint® CLA, dd, fd" 10, 20-3092 ff 10, 20.40
c LU. preretk® C" R43 =-4d", BBV} VALB=S
z Inopronf Coed #d"= fa" 9,9, I* BY HAR OOG
An penkhl) Hatement, excapy Perma specrpiees A petal Sowaclea ,
‘ ol sq thot anh
a & printed bike 4 a
Be pink vd Ld td” (0,20) 4, Serbaue (Tuon
Woe petnttiy Gotemoal 1 Ben us ase posscrg an Cmte Permat oo.
Beth doesnot Comte dorrerprnding vole, Harn cb prénis soo:
4 Uundepprect vatut Called Aorrbage /Tuunk. yale
Ae Print (FAFA, [Or 20,00) 3 1D 20
tg
Be pinthoo etm, whoo we Cat posse en oxta value ivi
conta Correshordent nrc sfoeateor , ue tb lows Hak wal
ce peanrh C*Tolat dat 1G,000) ; 7 Total Sal:
r ig. pene O° jaick sak = Ad", asa )) T
c 17te. prac! Yd, Ad", ays, ace) pH 0,4
ee) vord mann 0)
4
a= 10;
Prone £ Cas ra", a);
1 eee wart unapincd dymtot “0
2) VORA mun
2
ink @ j Idoctaratlen
G=40j paslgring
pene? (°@2 rd" a);
i
(aia
ryiveance:, Becher ates
a a volenaty lecoctlm & camed VOM,
~ Before using ang varie 2 US Program, A must be diclaned Joost .
~ Detlawetton “4, vauube M4ansy neads > Menton datatype anc
name As dant) pow
= WH CH POA? Bequans , yotuuble declawek ons mube-i excbted en top 4
the Pr ganm’ ater ohenivg We Gedy Broce a befpre ovitigg the
fowt Mokenent
Op varweble dectarations, name dh, UF Vost.bte wusk Stare with
olphobet oy under Stove ony
= 8 vandebie dectagation) maxtmun Gar AEE
& 32 Chavacters 5 afer 32 chanackers Norpolerr USE ROL tomgiriot
Wud vemeining Chawacteis -
= 99 varwsble dedlaadibion + en cstirg herwercts 1 eperators » cope
and cmsten| values are not alldwed |
9 varbte declaration , atleast singl ace shsutd be reatured
eke dake type and eroswable BoM e
— phen we arto doctandng emedllcplr Vormibies J Same ctatatype , ther
eek woganed to gofer eamma G) As a Spasraker
Owtetype vasuRele 5
18
A
wwslod 2d Aon
}‘:
1. ita + ewere
ae inl a error
g. ink ay Yes
A.tnr abcd 5 eewr
s, tat ae bs Crdy Ye
G- tnt Obe, d 5 tes
H. tht da. dy ac 5 no
ge (nk at, b1, > Yor
gq. dt a) errew
low tet TE 5 yA
te he VED yee
tame Labs yep
1g. Ent tla = Sal > evr
iq. int totalcaf > yes
ws. tnt 1,-2,.3 5 yor
EMPID ;
ach apf ter He 4
re cote \s bleak F_empsat;
lg. chore
GD verd wane)
td cp
Peak fj
Sas
Sta
Pronk Cyd 4h",
CH qeo 5
Mee?
indecater int +
19yous int vy Fload £5 Minis He
aS F focieral. perce Contant s
an fa 2 ‘ 6! deapts when dexpaging
D say a as Uke ocebpuk
G °S Sy
- GfQ.0 : ag \ €+ S[a = ao00e8o
6-09.09 as
© as ° ef 0-0
@ _ Ge Ge"
@ ads ° Oo
Vernier vormnens te aboagy operand diperdant only « te
dong on Un yp Value thy behoulye of, tha OPerader well be
Chergad
the Oetcaen value behan ere fy aldo Wooutble dependent only we
Stpendorg on UE datntgpt » Udigetumn voteee well bn Convorted
auckomratatty do Crverpondcg datatype
v7 Bm aimpleenentatilon , Dhenewer an Chats wend 07 Pntegon volun
and we need to ONC Go xt 40 leak vOWebe , Hern data cc!
conver tad frto -float Lrmat cutematially by adding
bo anphom cn tatoo 2 hen Cree an Oherecter getearns Hloat dats and
weneel to oscin ot to Enteger Yarratt » thon ony daadmrat port
Wl Ge COnnerted Ato Cre ves pondorg type»
Peydebaeth , dhenever, we ate declaring O Vasdcble , a bales
geese opje_solue ely
CONTROL Flow STATEMENTS 2-
Ee eneentl > process d. luc Program & Undue cnlouf
ef i ami! bod Statement
win Cl prog languarp + Coda bled statements gus classdkiet Op the yee ok
ty SolbetOm Hatoments
% tb else, ele , wader
Wy Thewadion StaPempad
Y whe Fe, lp Ore
a Temping Statements
break; Cmte reie, god
20
od
Ge
)