computer class notes
computer class notes
fockaq
2 Lonquage
PacHage
E s-wordB
Ms- 8xcel
ns- Ruetpornt
photoshopP
tall sAc
Langua
XC
Java Ptchoe
OYacle NO ee
COmputer lonquage
Fo solvrg my
Orny picblem m
lanaiaF e shOu
writ Program for ttng Yersult
Ltthout tttnq Pyhcn
PIOqYOm ue corntqt rut
Rogromme: CCBCL
Set of line bH ltne btructiof Ctre Ca FOrNOn
aRogr0mme
Add antoO TumbeTh
stot
Tate
Add a tu b
id ve nc
PrTnt ult i c
YOqrammei Takae called
An Proqramr
already Prored
Pachage
NO Teed tu lATte TPYCcoramme»8
ony p ttg
Yeaull
E %-Eccel
Lomguage ukjec
Basc, cOBOL , FORIRAN,LCal, c,ctt,c#, Jaua VB
Python ete
lablets*t ve
E
Engh
SuNce
angunge ahile
Oect
cade Tronola machinelcompuei
Code
SAusce
l0Aguage Yarslaton sample.c
Thete
Tntepretan
camplle
Interaeter
*ttronlote the Program
program lîme
lie by
9OYenor il the PioRram b me
*
Tt aeale9
executoble PIOQYam
* t gnves Poqranm piuacy
Ample EXE
Source comple olojset
SAmple.ce Sample.ok
Tntroducton to C
T
poqrommtnq l0oe
l0quage tranll8is compsller
xtta the pocedural Ofielted
moduaY
longunge O1 function orfented
proqrormmti
ProqTomig
struchural progommt ng
lanouage
Roaedure
A
subpioqom is called a
PrOcsdure
Fuichol:
seli cattatled
pioqram te called O unction
cCoorK> On pOP encet
FOP- PiOredural ortented
Rcqram
Oops 0kject
Ovielted Rroqvam
Progrom strucure
mamt hetder
Bock dee ration fart
3statematt Part
Somple c Poan
Ad ang TuUTben
Hiatory of Claguage
The rat saructual proqramning amguage s coled AAL
ALSOL Go0
developed b the Tntemakanal Guaup in 6C
ALSOL-
Aorthamic Langunge
* BcPL Bic Comiled Pcqammtng l0quaye
BcRL C develtped by ovtin Richada R
*B-Lomuage a
develbpad b Hen hampeon i
1Q90
C-loguoge Go> Tnvented
deustped b Dennis Richte l 1919
Gt ATRT Pl tats Ne Hamire
ctt,OsA
*Richte Dev mptUWed his c
ath the hedp o hs e tetd
BriOn kevnighor
They Puiched a boo i colled Thec
RoaTmmin
Longunge
ANSI Amertcah Natonal
stondard Tnettute
ANSI
Oppotilted a teom to
Richie 'c develop 0nd ctrmmettss
Ond
ctmeittss
ANal relensed
98 anew 'c ashtch t
aled ANST-c
m
*ISO-c a
deweloRed 090
Bonnd Taternotional
Iicoporaicn ch
deelbped TUoo-c.
C choracter Set
Pe-defred (sord
hich
coords ho» Pre-dehed meartg & timdd
meain are colled Pre-delied cood o stoMdond cra
Teyuod
All the e' tnstructHo ate called
rejord»
eyords liat
Quto
borek Cage char
COTt Coltuee default do
doulle elle efum estert
Flcat for
goto
t
lonq eter Jeum
hot
stqfled stütic
Aruct oitch
tyPerde Union
usned Void Volatile Cchtle
her
Tdettfer h O mame ih Ud to
Lwhich s stored menoy.
idetknq
Varlbea costanb
Varfoble
Which chunge their VOlues 1 the exeuion re
called Varible. Varîülle s m ckantiier
cOmtant
TdelttRe (Literal
ariode Mame Rules
*Variade nme stlvt .ath
(doqt smt ith
Alphobat.(AORt use Kiiss
number ar mbol)
1t tctal - 500 (This i s
oror9)
t0tal1=500
SPAce
*DOnt Jae special smldolh for ar0ble name
Tt a l l
0nly One (spectl mbo uNdersce (-)
totol aolue =1500 x
'
total+value =7o0X
total- value 150OX
total_value- s00*
MOxmum lengtt of He VavTalble name A
charoctem
charocteh
u t ue I0 charmeterh is better Prctbe
XUe al emalt
letten for
enative vrolble NOme '
octalote n0me
DO uve
Keyoords a vaviabls 00me'
Contant
Which do not
change thely vOluea i the
the ececu
exxeu
-
B"VAe" "meRK-
castont,
NUmerc colto NO- Numeric coftstüsb
Tnteger ccbtont
All the non- FracHonal value
Cor)
afe called Inteqen
A Aumber wih out deimal
poills s called
Lntegem
Ex 5 5 40
I63 8534 34
Iat
chtt Integer
Stngle hovt Int
unsrnadBt
Sgned Stgned
Tntee ong Tnt ufetle
silgle
ed sh8t nteger
t o 65B6
216 to3916
unafgned shl Tntener
o to 6s536
shbt Tnteea
x
Integer Decdrakon ktuords
Int
sied shgit Intee
onq int sled lon9 Tateger
Ulsyled int Umstoned sht Tlteger
unspled long snt unegmed lo19 Tnteger
Real cobtont
Al the fractonal value are real cotanLo
A number having decimal POith or precesion poMb aze
Real conbtant
. Float
9Double
upto 6 PlectssiOn
upbto iO,Predssion
Pornl Potr
41.193456
44-193A5618A
4BE MMOr
6 Ete memony
3 ong. Pouble
10tmenoy
S0le choracte contant
LAlhich single character indusve
nsngle qutte
maTk [t ] i called
ne charactar conktant
Sting c0mtant
t o f chavacten indusve m
double quote
mavh av called sttng cOmtont
S9-"HANs4" TANEs,9" "542Go", "xx *"
eic data type m c
nt Float double char
Datütype madtReh
int
ustgned nt
longint
unstpned log mt Float
double longdouble char1X
3. l0gieal operntorn
4. Asstonment Operatorh
5. Tncremelt IDecemet
6. cOndtional Operaton
Cpegto (Undr{)
1Bitise operdtorn
Arthematcol operatorn
Oper at8
Name
Functon
Acditon
Hin
Suktncton
str (Atch
saih
mulbptcatian
PeCEntnna
Rehtfonal cperatth
Opeotr Ngme
lesn than
Greater than
Equal to
Iens tham Or eoiol to
Greater han or equal to
Not equol
oqtcal operoturh
AND
Or
NOT
Asstmmet Opertot
equotngl ts he asstonmet operntor
used tD
m. his S
Aasmm 0'value 'to
Varfalble or varúbte B Expessul tt
vartle to vardble
E NOYtabde =Vaue
E Ndvüble Epresso
-
d bxb-4x OXc
av=3.5
NOme suYa SI-Pxt *h0o
rOcde a '
Eca Variable'=VaYtle
vovalde 8coBonb» COmected
f calked
asith gn Open1
SprematOn Cne
Athemate Cmathematical \
Relational Preseton Expremion
3 loqtcal ExPeaeon)
AatHematial Expesaion
ST - PIR
OD
bi PxtX aoo
d- bxb- 40AC
A TToa
Hierarchie Of petdtoth
s ts
a- a»19 a-b
S-0Atsla-b
S-otbla-b
=
944
1944 I9-t
| 19-4 = (+05-+
5 5X
3.
Ea:3s= Qtb S-
(0t|(0-
a-
= (I9+4] C19-9
I5
3.
(a4btc9.
Sq
0ea
Oea
e-0 ( (9-c)
t (sx
(a-0)(sD*S c)
S alb* qat
S
S-
Sant (d *alb
i Ptxaloo
Stondard Outeut Suncon
0C
matfis the sandard Output function
is Ubed
to
c.Thts OlscTEen
diplay 5 shou the
Gotich is values,from
stued n memoTy location
stilg diect
a AAntFeentrol r,
Contiol 9trtnq
Print f("conuexs0nl char acter varoblel
O-10
Rint F("1.da
floct b
p-155
atatype
CUNETEiO char
unsighed tnt
long t
Rules B
cotinq e Homam
*Cotte the 'c poqram
a.ccorckng tD the c Roqron
ucure
*use 0ll smal.
\etten wtn c
ploqra
XSe me hould temmate (ad wth
sentcolon