0% found this document useful (0 votes)
5 views

computer class notes

The document discusses various aspects of computer programming languages, including types of software, programming structures, and data types. It covers key concepts such as variables, constants, operators, and the history of programming languages, particularly focusing on C and its features. Additionally, it outlines the differences between high-level and low-level languages, as well as the compilation and interpretation processes.

Uploaded by

chaiturapaka4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

computer class notes

The document discusses various aspects of computer programming languages, including types of software, programming structures, and data types. It covers key concepts such as variables, constants, operators, and the history of programming languages, particularly focusing on C and its features. Additionally, it outlines the differences between high-level and low-level languages, as well as the compilation and interpretation processes.

Uploaded by

chaiturapaka4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

lanquae

Hardiiare COmputer Phyatcal FPrb


softuare
Cemputer Progam
*OFthiQre is of 9
yp-
Stem softWOre-> (te) cpatg syslemstortilg ovldou
. Applfcation softuare

Computer SoPinave Usel


Hachtne
Tran at8
langungee Co
Englrh
APplication softuoare -atypes

fockaq
2 Lonquage

PacHage
E s-wordB
Ms- 8xcel
ns- Ruetpornt

photoshopP
tall sAc
Langua
XC

Java Ptchoe
OYacle NO ee

Python etc Teaut

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

C B=ginEn Al Prpose Symbolte Gnstrucfon code


COBOL: Common Buiness
Orented
FOrtran FOrmula. Tranlalton Language
Lonaa Rocesec
Cmpilesa
.Hrgh lev languaqe t shoro
9.Loco leve lanquage * cectng
3. aaems leve
lanquaqe It CrE0te
HHglevel languaqe plevel langunge Cmachite
untho
Creote

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
*

ontil coriectiq enor translatn cotl be stop


error
xTl CSN Ad cete
ay permthat
permioant oijedl
X Ttbl not djedd code
cade
cTeate (nu
Provide
XIt wll aot, pgrom
ececutolde codee
prvocu
Compillen
ronolatea Gohole proga1m
Program
at a tme
shoos enor
COnecting e YON Unts}
"compile
Ccmplle u c c e s s

CYe0tes9 Pe minant dsjeet pioT


Promam

Tt aeale9
executoble PIOQYam
* t gnves Poqranm piuacy

Ample EXE
Source comple olojset
SAmple.ce Sample.ok
Tntroducton to C

C 0m the moat poe fül and


poFulan
getral un po leve

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

Bch onFigt bc;


stulemd
Part
b: 15,5,
Prat F(.c;

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

atoz Atqz» Aphobel


Oto 9
>numbers
+-* f= Inl\

braces culmq brache6


Ttlt
Ppe Vertical ko
& Ampethald
ack sl0bh
A Period
cworss
here te p
Pre- d-finand d
Una defired God

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

aer. defHed cOrd»


Whtch d
defiied buer, s called usea
use
defined db e
deined (ord Qte called a
iclentifenh
Idettike

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

All the dota name 0te called vaTiQble

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
-

tion ove called constonts


All the dati ov vOlue Ove called
cOtols
1.3 44395 13.4565
-48 - Ts095

B"VAe" "meRK-

castont,
NUmerc colto NO- Numeric coftstüsb

Tnteercotgnt Reolconkant singlecharacte strtng


cOtat
41 43.5
coOtaat
"HANSA1"

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

Aboale o pciston Potn


44. 1934S6439 11

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

.Arithemotic (mothematical) operaton


. Reldtional cpevatun

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

PintP HANSA COor1PUTER S1;


Afn (1.d attl;
COnverct chavacter list

atatype
CUNETEiO char
unsighed tnt
long t

unemed long înt IUld


Ploot
double
1-LF
long double
Cho
chan (strtng)
-

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

You might also like