0% found this document useful (0 votes)
78 views25 pages

Introduction to C Programming

Handwritten notes of Mine

Uploaded by

MUKESH KUMAR
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)
78 views25 pages

Introduction to C Programming

Handwritten notes of Mine

Uploaded by

MUKESH KUMAR
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/ 25

TNTRADUCTTON TO PRoGRAMMÌNG

Machine lanquage (LO)


hanslate - Compile/ Tntev pretor
iganing Tadign
hocede Oiented C
Object oienled ct
Fontid onerle d List
rienrte d Mathematital 'Reasonia (prolong
Event Driven
Non
plsedural ’ SQL
sQL [structured
|stroturod query langooge
Molti paradign langaes ’ Tara, Pthon.
Camputa is a tored
store prooram devi.
write language shich have syntav.
Can

’ Syntr i the charadeice df


language.
’We solve a
Can
problem by divding ito parts
Peprecesse dietie
#include<stdio.hy Trecering compilaton,
main C)
sldio
sandardinputat
oritt Helle I teas)
printing ta conto on tes
’ 2types ot Files
. Nb.
He der
Contcùns only
Declaetier. Commor ograM.
’ AU execolable slalemen
is called
Somicolon memovy
Gaondo
Moin Pimar, Memory Hp,HDo,ssh
CrUA RAM{Rom
slol ll,
progromning lash wilh Main
Mandal
main
Ereculion tals

Hello World
maln ) (notn )
+inclode<sldioh)
nla,b,e
o-l0, b 90)
priat( Hello tsold" ):
roton O,
nym bey is Even or Od
) whethor tbe given
#include ctdio hy
void main() Edoeotion is the monkodlal1on o portodi prose at
alroy in man Sstovni Vivokanorda
into, ic clorivod fom ololin word menn;
{loosoving rneoning to rorlbub.or device
put (/d is everra) Lngner Deslgn, Thoblorm zalving
ele Efecl
oidt (yd is odd\n
nes i de Come! cuddonly and in oralher inhalie
tsy bul illoston is nathin4 bul thoouttoma af
ndute ldioh eorlier
ntellectoal Cipenen e
wikipodia defines irehrolog o" Tho seientr
uwhich i 1he o tehniurs ,ckill, me lhody and
fprocosin ucal in the produlinn of qoud, g services or

o)
(CC Lab Condiio Itean),
cho()> loclar
, ’ Save

HI1 Fa ’ Run / Exeul on.


AH + F5 lohekot
AlH 4 Eutor 2oem In/d

Addition a Ononnhers tvc hango o mum bos,


+in clude< sldioh 4include< stdio.h
main C) stelomenl 2
main ($
it a, be; id a,b,

C= at b: prirt{vulwesof a and b
are Yd Yd,a prirl ("The may is J.",a);
printyalc):
Else
asb;
b:c pritt ( The moax iu d",
find the max ot 2 Num bo printf The vulses sf and tor Lospi
b atter
Hinclode <stdio.hy exchange Yd a for Citialition, condion , ineremanl/Oecremorl)
main l)

i ab;
slatemeat

t Condtin is Fo lse
printt ( The ma x is a Aa)
¬lse
pritt ( The may is b Yd", b) con dition is True.
The
De peuds (oop)
order in which
is the ordei of
we
plae tea stete mot phyota
execotiorn t these stotement
t+nclude sto.hs
* Tnner mort () ore SUmO

eecuted firt tor (iel,ìc= 10, ii+1 main C) f


Jrite Yourcelt
u mome
Urito a Pogram to prit t
inc lodexetdio.hs
mainc)
print rd ):
printfw Nome'): print fya;

&ehange t two numbers


a program b odd nom bers by itiagt, #include<sklia.h)
Vaviable
Sol} mainc)
#include<stdio.hy
mainl)
int abc
SCavf
ta, b
a= l0 oritt(The valoesof a ad b are
b= 20; C= a)
C at b,
b=c,
eahange'
printf The sumis ):
prntt' The wolves ot aand b ater
) Write prog am to odd 2numba, by reading or Odd
#inclode stdio.b) Check whether a nambes are even
main c) S tincludesstdio.hy
Sol.
mainC)
into,b,c,
scartyd d) agb;
inta, b
Scant y. d" &
prit f The

Pertem t,-,X, tor 9 nom be pritt( d is even\n,


else
#inclode std ioh)
nain() priatt C. d is odd \n", a):

ntab,edef;
Som o N nau,

Jte a proqram Cp
num bors

So
#includeestdio hy
main C)

Intn, sum Macrn proroso


pri "Entor valoe etn:
underslanda ble
tor (i=l, isn ii4)
Sequenj >Order whieh
Sayne l b o etor ubd

4, Ele, Surteh. fuhich ororo: Tis


Sum. sumti
Conditton
Surm f nnatranum bes is Yd,sum )
shateme
Repetian -s Repoated ly execute cate monts
) Hord ware levoI
Roitabildy Can be as
Plattoim leel
Why C General Pagong c+t Javo ae ba sed onC

Seom Os, Compiler


Applittn Ertel, Specdtho, Wore!
Erors Can bo eauily found by rong ly tupad
be

high level langua go wth lou leve longuago we hare to espeaally declare +hat type o
festures langage is called shongly typed longuago.
Hiah level c Strsctyres - Records
Unions - Sinilar tostroctote,
Asembly languago. > Sym bohe odelt)
Machine language ’ Usinglk0 Pointer bsed to allocae memary dynamically
Can have control memofy osing pointa
’ Most ot the Complex sottuoes are cori tten jnCt
can be acheived
"Eieieny only by c+t langog. Used to lou leel languag e.
which are
C langue fettures
Ertemal Librany We an.use angting
’ C is a rsctoed piogram ming lanquag
o
C progtam i portalble ’ Com pìles ts Native code ts
ster
\earningIonguges
to lean
C:
something eke
’ Maco processod : Symbol represert
Sya t C Pogram
General
C>.exe fle
dive tie
ttinclvdeer Hdetin)
precesso D:lerenees betoe en
Pe
main )
Asc+ UNToDE
Declovrtve sttemt XA charaer enting * A om puting ndotr
standard r Drsitert
ERecstable satemat stendard for electro
represertetion
Communiaton
n mot
tert ex presse
Gonveit C.exetrle coorld's writing syetem
X Starnds for
Ameriian stands tor Universol
Peproces sor le character set
Souree tle standard Code tor Trtormstion
Slename.i
flename. c nterehange
Supports I28 characters Supports a aside range T
Compilaia,. characters

Uses 4 bits to represent Uses S bit, Is bt or 32 b


Eestable file Compile f4
chara cter depending on the en coding type
inkr
Requires Less spcace *. Requirer more spae
flename. EKe
Frlename.obj
Jetifers ¬ Keyuods
Pre precesior Convets Soure 4ileo pre proesi! Tdent fers should beçin coith a leter foilssed by
ang letter or digit
CCharacter Set constds t letter & iqts cambì
AScTî ) Ameiean standard codecr Tatormation alss a lettey in C

Irterchage. Enom ples


abe | Mukesh2y |Me n csE
2s
Bt posible valss are
[*-) ’TURN PAGE
Kequgrds
These are resul ords are Hihose cwhich hao
pre-detine meaning. They conn ot be uted as

Oerived dula lypes


Longuag Keyuonely iese
aut double troct combining o
rnore basie dao
tye
swteh Arrays, structuro, Unian
break else long
Ucer detine d:
Case enum
regitor typedf These are derived tiom ts uter hmstf
char extern return Union E Type def
coriinue fr signed x Void is a dto type
do static tshite - hich indicutes natin

defaulH sizeóf volatile Oato Type Si2e in


Bytes
Size in
Bts
char Range
con st shord -|28 to 127
bnsgra unsig ned chor
O to 255
Data Lypes Used to represert dota. int
-to '-1
Variable ), Variab le2 Vaviable3 unsigned int
80 64 short int
Tntqer -128 o 127
24.2 91.3 > Real Numbers. unsigned short int
O to 255
a ab' Mokesh' chavacters long int 32 to 2
’ These data types are
ceperated by comas, and un sigied long ind 32
terminated by semi colons. Cloat 32 3. 4E-38 to 3.l,¬+38
Data types are
3ty pes double 1.4E-308 to 1.7¬+308

Basic Derived User defGred long doubl 3.4 ¬-4432 to 1.1E+1482

Boie Dga lyps Modifien or Qualtier


Fur domertal data qualiy the
the meaning
tape deined by langiag|) which
Vaviable.
tis an
General
resyitsGpession They > SyuttDatyopena during doing GonslCeni
ants] Shot
operotors
operond Sytax.
vale ina cannst
An l0,int a esecuton FlConar
oatpoignt StinChoraer
g Constab
eecution an

ond an
toInstntegerans iderti (oModt
ng tieryspeasre
exprerion be const
operas otf ot
workcay voriablebyiderter
followed Conctarts
oporate pegam int program ahose
the inta,
awhose Plo
Reserved
words
chenna'"
to.8 val'
Combievalundtion af value does
atton Unig
valyes
name nt
o changemoy change
Comhyby
shch
pera

changenot
Const Sobetrtte
r Sybohe
constan:
4define preprocessowhich constavsUodto Declarotive Shatemerts:
delare Prov'de Evaloation Compic kil
langog
db3at2C=
int
Lor
ita
an operlost,)
|shoub
a are
Dntormai Can
invesutd
l0, diredive
a altlhowsat shoul
nl te dotivos
URN
PAGE detine d modtlicon
seq ...e resutim
Variabla thoybetoken
oracton They
toExecstable be
when *
uene cblssitied have valve
albe i is
evaluated result ew
of st any ot inoperato;
substtute ahorates vo in
some into ide variab valve a
SC luey
#deined isa
d is
name a

Gthexewtion
statemarser the otcortal
ehich
Those 3ty
etcu lo \:ko
firat ved bt
pes shoulA,tno.
atte. the
thu val
deline delive #

nomeevl

oaluolion
blorethe

> PRoridone
1Rule repiuurvt
ronnal
droelly tntanl.
ewlol
(num
we wis.Brl
Sob
exewledeyplecs)
Opentlor Aciynmral IngkalauonalArlhocheRe
lernory
\h
apply
on Assoc ohanla,hesline
opert a which
alive
lhe lor
imne fule, cloperalon
omol pretidene
chould
level per
lha
’ Ahemehe
Athmhe
(+ x)
Relational Otpud Troe/false.
loqial value.
Out put has bgital
Ois
true
ther than
Anytng Termarg Operelr
false O
Iroe othorwe. General sytar

Loqical peetos which operats logical vals


ANO

T TI
Enginering
Asiqnment gparato ’ Enginring kderived trom ihe latin ingeniurn, meaning
+= leverness ond ingeniare, meaning to conthive dovise
> Engingering is all abo vt design/ problem soling
LH S reterence d Thee can be alternative solutions. The best the
RHS Îs de-retevented
în
programming langunge alternatives to be chosen among
’ Ex periente Can be a boon or curse
13rtsise: They sontor bit leve l (&) y Resoofces to be used eticiertly.
are

Var I op- Var > Enercise is dfefen from a probbm


Var ) = Vorl pyar
Mathematics
Number System
We owe a lot to the Dndians, toho tauçht, us hoco to
Binary Count,wHhout ehich no coorthehile scientitie discovery
Hexa c oul have been made
Ota. Albert Enstein
texa deèìmal

anting >Any mony lechnoloqy ’ processes owhich
or>Wikipedia
Technol
detiongyes itutive
woy
> and
gicalalwheel,phone.
ents. smart leh
taings.
the is the
lieor f neA ensalindory smehng
nolagy person you
abost accomplshment Used
the
telephones. The
sum have intelletual comes
dea hov
ahwl yo
is Technology
empouers
con enab inTechnalagg pouwer But cohilever
seiene f Insusl
kind': o dge
not the sctray.
euse Commontheles
ot
doubts
intotin il,
Computers techvology the
about tech i ln
producti ot evperie-nce"
just technolagy
of
the niue, subconscious study lbert A suldenly Kelvin Lord
in y evpess
on
nothingbut is your bo tyou
elecronigoods
and objechives'. skills,
as
the
materthe he a tohal
onnol
the man et science
the
atco
Law Einstein and in th oug meagre in
internet without common
to.achiere qood metho mind" hi
in nom
begnning
serviceor
ot
a advanco4
press it
ber ovpress
ds the may s,
trachia A
are
nci ro
ie knowing
|ike n and outher of
t o n


Basically,they
kolutions
do hay
tonoture. is methanieal
Irtially >heading
the evolvedComputer
inQrale kol> 5
Tran
There volhigtah.Compute
geand machines.
Next
Consited f atioAinding Cambridneye Tnduy Tnduty Inducy 3ncdost
nachè
.0 yIn20
clodlry1.0
ttor arnote grooing
still near
eleCro
are came
bm
s phyeianot aso computers towords
fsore
rrayhtch diferent nic ond
ords, that S0- 5.0
4o-
numbersdictincusl
arisyomiprforond.
s machihes qears,
Unlike arnis
ezductcd s yber.Cornpute,tletroni
ae comps aere

wheel:, chines.
mo tor oted Integration
to way;
da's ohich cotlrollinq ond torPhysialIrtornl ond
deline:
Hts ot trnss'rie,
pitures slor
et. re
ro
re. cr
stre ng, machine tom, ord
forond-users
syi
oryraing ws
ren
"ns nyi brors ond Smart
n humanfacore,
sd
’ computer
Today' ’ oayHodag>But, year TBM ’solve
The ’ ()
Alterniating
are
devices
Eletrie eledrie
inerease )
The
the whiQuartom
ch Molecvlar
ompots ike and ’WHto
diculH e trunsitorsthatMoors ’la
Data
computer A s
to are
thé Dol6 eurent is increase govng
have
Dsta Computing
Can becoriond
ng tuo device
diference
the has computerscomputers
expecte double
eyHo
quantum and looking
can inportavt size is
veny
designed com
the reached
redvce
has puters molecoles molecular CanstatethsatHhe
be Consume
the
between lowin
othe toare fonsard
ages,
capable
numbers
lrke
derta amourt
on
is eomputes put (even solvebased replace oapacty Hhesizestage a be
eharactevlstia capabilty. sased
onths.placed
devices more
quarntum
ton
video

ef
thedevice.
eleztronte
supercomputen) some transistors
onon
and
ofo
usefe
IS'mhe
twhere
ot .Theyvoltoge elecronic hich the f
.etc.
storng voltoge
cloud. com
quantum
problems
quanTum
comput er.
ther transisors
number
in
a
bers, There?eare findingaro uni
computrftot ond they puter uth
alpha the a devke availebb computoypes
dsla. that Use. long tn camscomguin ovqanik of
bek and the ohic ip,
af
ok.

more The ’ example


atyoofor Some
not ’The storenUmber 'sWhy Compu Hasks ’
fdala of whichrnakes
states
The
This MulHiple regai-menl
thY
ee Here,
Iransistorttan CPU and
the h possiblereason the Can

certral tixed
syterm
using te com JS
ond
On
a or data s. pute
devices wht programi
Core
andof billion)
micro
Qn Transistor may
volue
electrois
to why Ialhy olko
com using store: stored
elecronc protes cannot maintain
and t
cannot calculatorstke ma
procecor tronsist pornestofa be
olphabels
devcesnic the only kes ohich e
62,S. prog";
maintain the slofe ainside ore
USes
-he dala computer
device orsmade is
ot
4, i.e,digits the
:
and 44 lovoltage
w inand a
that computer the are a data the compuor
1.& S.o,
vd to
oto. o: d.terent
nistors. billlon voltage
4.. taqges. unstable
pre 2
eon sereral usng torm of
cisely
be atansis is why
a tem
intwo exaclly at
e, caundec1ma
o t noT othor
ram oto Computer
diag orehectu)
Ven Nevmorr
Block stord.
(Pondem oress ernary) ord errraret rresr-let

Memery Ha Corn psters Hore Erolved ser the er:


ireerti
Arthmeie Loçic
’> Gomputing tted beiore the
Cotrel compters . Herg
Atemolater considered
> Char les Babboge,
designad, D:fererce encnes whih car be cdered
Tnputtpot fit corm poier yesr I322.
the
the reerene never bult. b
Von Niemosn
archtetore ’ Com pleie cempoier
studied pretstype.
Lompst Used tor astrong mìeal rd mheml
The major
Corn ponert ot a conpter ae mechant cal
CPUtl n and Ar ...-t.
1. qears, coheelk, ever
Memor neit designed
3. Irost mt > Chales Babbage nalia ergie
whick Can be cenridere d
cmputer rtn memry, artihnse lsoi un enirel n
ceU is tre certtral praeining unit ota Co mpe.
is calle a Compter ensists and supported leoping
dferert the main tpas not com pleT, botit reembles the t
qeneration designd
are assectated tn in put deiie:,
are aaiate tth eutout device. ns alis a mechanial omatr, Charles Guoae
machines sed demal um ter Susem.
>Histne CPU that ererte pregranm. ’ Saveral Analo omputer ere desond i e
purpoie by sierart pple the nect .
deiees Qciept the data transtered
"Ihey be calle mechantal md eltal

ernter Exomplei ae mota ane can be ConsideCd as the rt


inverteà by
digital programmable
etm p
supporled t r
compuler allod
t t elethente tubes,
In

colesus. used Vactum


’ The era 19.
nol Toring- compleb signifeunt
inpot. Bot enertunsek
is
called as real computer tronsictor by Rohn Bordeen ond bater Brattain ard
cannol be Brvetior
Hence, iH and Compdlal: Williarn Shockley ond he
Nurnerical Inegritor
ENTAClElectronie tist suctestol
eottetl digital pregra ml lrcuit by Tack Kilby made st
Germniom ord indopord
Siicon.

considered as
the
definad by he tate ot pal ertly by Robert Noyce rnade ot
compoter. Hogams eonsisted at several These t o invention s revoltionzed the omputer
ssitehes, î t eletany industy .

cables and vesiclors, capactor, relays ard The aubseqverit computers are known by their
amponent ineloding improved versiorns fthe
mainly vactom tubes procesor ond they Used wbih
otheheld troansistor and Integrated eircorts. The company is
one fhe brlliat minds called corrtributed to the majority of -the processors
Tuning troduced euhat ts and
conpt saence
universl luring moch Delhith founded by Robert Noyce
universal eonputing machine or Gordon Moore.
in 36.
theoretical computer bot could perb Evolution st Processors
’ The irst micro processor is ntel yoo eohich
compotations. -bl mlero proceJsor.
ot it consisted of atape a
The phy sical model sot 8- bit processors are 8008,8O80, 803S
st sttes, and a reodairto
ef stoing symbls BO86,8O88,80lS6,80NS6
’ 16- bit proessors are
had capakle reading and eoriting symbols. S0386, 80486,80SS6
the ather ot Computer 32- bit microprocesgog
is consi dered as
Pertiom]
SCvence. 13,iS,itondi9
he machine wht ’ Gh- bit micró procesors Trtel core 2,
’ He is the person bohb could invent
wos Used b the Btish to decsypt the .mesages y The rnumber' ot' cores(processing onnt) stared to inerease
t Germans shich yeulted in the vitory ot Allied and allthe cores were present inside 'asingle chip
fosces in World biar . Bot ontortunately. he commitod Cores Can be con iderel ás small CPUs insde a

Suicide ond bos homoseoal. At thettine, Big CPU.


homoserality considered as
indeen in
2core s, ycore, 6,, l6, 28 Compute are
Britoin Ovailoble
e the
processorg abore ost biegabk compulevs tmbedtd
geneat on
S Ale the Aorslail(04), Simutphone
in precetor technolo, comprton, Porsonal Digla displas
Signt
hprovenent A.blelsand hfod Fnounted ae nst tomputer..
ot.compuloy.
hn tho prevnbu grneation Neyerthe lexs, -hey hqu, tome teatote

desktop pressor is inleli9 -)Wehrabls ormputar he norne


the cent orth. oddrtioncl acetoriet shchenable you
procetor.
The pioceor bsed by
Servers are
:to atlach o your body Usslly, these wearable
cores, cache mem oryet compulers Corne rth somo progrons ard they
nt sees ot server procesors are Xenon pro vide goo' aitk son intataion for example, yeur
, Phe
so, on ger le velte
pulse rote, blocd pre sue
targeted at data be meeasored byby these deitoi:The
These
ehvronment .. et. ceritres, cl pse, computers
theg ein be ealed

>As tar as Poceuay technology is concerned, it ’Eribédded 'coriputers are .similar. do weatable
sbeeforther improvement,
reached a staçe where com puters, but the compter s embeted inside
may not be possible. The
physic1 may
the lous ot physir deyiaes ike,Toys, They havecharacteristies similar
s
f hat thert
enor mous amount generated to bueoro.blë ,-com pupers. These, computers ican be
peverting urtha progress . progress can be embeddad.tito'your tbisds also.
viclating the lass phyei
achieved only by
by 'POA t a peioial, digtal aristant shtch has
’ The Gaphic poesor ae being oddod etai arrived be to re iomarlphones. Ihe pur pose st hese
’ The tostue generation proe sors will be baed lerices s t8 store isne peronal intormation. ike
On
odrese't .te. The curent geneiktion rof srharti phores
Quanum Phystes ond Molecular eomputing. have all the , mpabikties of AS and hence they
are rarely used now. lhese are hanheliderices.
sf Compt
Wes roble eomputer s) Notebo ok > Smort phenes ore handheld -devices hat have npobi
y Embedded eompter . close toyesterdaye .desktop compoters. Moie imporlaf
itha proçesing copability tismartphones itreaing
ropidlyhey have memory .nto ohich, nes prgrams
(PBA) n) Workstation Gan be logded. he main problem wt,
Smartphone
s) Tablst
I Server
) Mointrame
hem is the Sereensi, ohich is relatiely small and
` nst sol able for some applteátions." Bot, Mthe uer
) Hecd morited is satistied th H'S snall sereen size, then smavtp
) Thin elient
duplay: (uko) )Qvauhum Cnrper provide enoromous
being
1s) Maleculor Computer eter ively ued tor Video baced applieations.
come uder he lapstóp ashe tncdiret

’ Hood
maunted
Raolh
displous
deves support pei
not oy
de
e
ipheral
oleg computo
and sed them,tho -torrm
p'ared
J

Virtual They dont and also Support


ot programs. nd monttor porlaba ord have proresz ing
unning smal phoner aHached screen. 1hey
itertaces like
more

suppert tooch
dont bave two screens
on whth

videas. Two
screns
Can

sepevated by
are dipay
tet
a olso hare batery suppot which
They even ahen he poier gses
Ihey and AMotion
eyes. pre Users compotevs in he fice
images sinilar to our
Ga2c. contol. The most widely used "conputers iey hove a
few mehes them by facilties environent 'are Desktop
interact aith feed back keybóardand mouc.
avalal. abinet monitor,
are

cortrol and haptic


Can
haptic seperatec CPU thetop ot the des k
in the latest HMDs.
they can be pláced on
eatld desktop 'cofmpters .hey
Since
with Varied range
Thin
clierts Come
considered 0s, a jminiaors are
Athin elient can be makat,
desktop. aomprter. hoge ave similar to desktop computers
hin clierte com atth he
procesor,RAM in betwgen
Some
cRT nonttor. Bvt the and. havethe processing capabrlhy are
and haddiek nside a Capabilty wherD compared desktop. and.server, °cornputersGenerally thgy simulat
for ronning' graphies programi and
lót in
ralotively very exam ple-is the, Inte Dst
d Used
desktops One
to (orme ththe foin'of
Some thii cliénts disk arangeda . Servers Qre the mast soph isead compster. Thay
LCO monitorith ahard Some thtn cliet COrne Merel: corflgurattions ike blade type.
Tn
tie LCD monitor. is gpttanal because
back
similar to derktop computers
butoith redúced tower type:ete; The, monttor,
the USer
arei. rary, un, his.progrns
Capabily
’:Note bock' conpstere
cOun beconsidered as a
D:fetent sets st prgram -re loaced gngheyrun
otaláptöp: As the 'rame indte serviesto,muliple chens
miniatureverston corttn uously ond pronde clients:hey
Ahey Ore generallg wsed oi preertatBons i Uaval Sints-hey, have to ser y¢. muHiele.
they come
processor:
annot haro. hgh cotiqurttoD,
.be ured. for apptattona that require more Matn teiné computers ere. the -fit aomules
They' iere use d in theAtearly
ihal ere dengne'tielareued
procei;ingeapally he avely'now.
days'bút te anochured no w.
leasti the 'montomeí drenot
machinesare dtached to matnrtrame
Multip le clen
SQuontm Quantom
ompter phystt.
teperentaN
heory Bulky corn ptors
ar qu bit.
.Ihe alemo
qtantom b q Vacum hbe
- called
: Punched cord s
are ill at
Cemputos twhth
more
bave sutbstainlally
capacty than veleani Card readers
Printers Cwere
read ho dada
Use d to prit the da
stage
dgita compus. nst tonsidered ar: > Piogromming was -mainly don e sing mochn
Quartum omputers are
omputeg h
replacement Rr Qrentclassieal. .h
langvage.
eyielot ed t soe . comptelex
Prablems Eq' ENT AC,NTVC , IBM6so.
Eg'..
generotien
ronet. be solved. byhe: curert quantom tha Second Generation
one împortant heony :t
Cormputa: . esevit andotu main elemént
parl
are
alread sed. ’ Transistor ts the
is
-:Canpterie aere,-sHl: in bylky.size:
’ Maitrames were U sed
’ Moleculo -omputevs eli but environment.
and is 'based on nt engiaring. Multi

S.Apart, from pynçhed, aods, eard. reader- and printer


orgonte chemitrs be englneering, smart.raaterid Used
and molecular bialogy magnete tapes twere
the proklem oitea digital comptesihiside a
is the romba > Prog amming os done,; using asenbly tangöage,
f tranitos hat -an be placed programming langges tated,tp arixe.
hip is imted and has reached
t ut'to dd moe > Large orgonizrttons,. used Computeri.
eng inecrs nding
tranttórinsde a chip: to increase the cápabl Eg TBM 7000, Honey

> hen cámpared to' transitos,nolecoles are


hird Generptión,:
snall in ond wear
plataaand
hor ’ Trancistors integreted rto an Tategnde!
Qre
number t. mo leu les insie ship Qn inereaue cireut.
he, capability he im porlarst pont is molecule ’ Size of compster dratically:
eon be ysed, tr, designed ondindivto
Agimilg computing:"
rernemb er ond they: 'ean Peisonal computers were

Homsop atty princtple .ia. uNe d in Used them


>High level progommimg longuages
Eo: TBM 380, DEC PDP-.

foth Geneot ion


ah be consicered
geneialion con putevs. the
cUre
range Kigh- level'
langvages
.’ Sped ot tompter
’ Size ot herented enor
’ Comp stat
compuers detreated.
> Dnternt connedted bing
ond Word Wide
a
computer naloi
the Drterhet web
services over
Ea DELL
apiri'opnie'DLO, Lenoráea Carñp.
ffth Geera-t t!,..
>lhese tanbe'
Ature.
’"staite d
éonsidered às
’ AT
based'com prle
poleculor
Non- roed ura
lonwoqer ar imterati\uanquages
n ard programmig.
and Natural
Tt
-’
is
Aaomulator ’nbits. be sloringot y
ROM
Acaumnu
RAM-Samcepe d dor
which inbot
an
inbo
dala. laro staDynatieamni ROM & Diters al)
Sma
RaM Volati)bn
ll RAM upon
atymulater poceat
mernor4 the
the usoally ocupable
devices RAM Pendiue,
tDD,sD
dala.
Dvopg mem'Maiyn
ryco,ElSonday Cae he
regito
mmory

)
’Each 5 -)’1U'è
-> HDD: prgnmae
Erosableand
Data Geneally
block f Eack 1t dyuomic
chrononSun
sk is a
PROMMasked
( oM SORAM
is ditolleeltorn RoM) RAM
block
sam permarert (MRo)
rooding,
i's divided
ever in
draggin RoM Dyromir
slored
evng (Eletrically PROM
(Drogrormable
EE pom) PROM
RAM

ina loqically dikrsloraçe


sertor alkes devie
vainble
Ro)
Mode -
place
Diuided
ino and
term in Conereitiat) out prorammado
o
Sectors dyags
erecuted. Pigam AC>DCTtMother Mothbood.er
which
Supplcotmhe iaconverts
pute..
Ribbon conneet
dichoermponeetnt rNa
n is
Counte[Pa] the
diheent boavd
keeps
regisler (Sw sgets maih
Heh Gllection
track
nsiotde
pouer
inode pöuer ot
prited
to fram..
SMPS
cortrolunt
nert
diere poaer cwires cireoit
instucbi ofcom
ponencom supr). bo .
pob,
of

*audio shich
14
is
* * various * Os, E
Compiler, *
Dt
Word
GApplssttare:
iaTtiston Theydepend empurps
them.Systan ces.
Appicotionputer'aidcom e
sottare
required
fisa
System Sottuae
Gontrols
roms is can User
the application loader.
linker, Convers
more
player
beproceior, mostlyenable sstware
comprler
which eriten carmea' ssttware softsare
to Codetey
Source
wrHen is ohrch s Debugger, S.w
Trandlaclor Sydem
Appliatnr
soy
we byspreod
ssttware. wrte
write any ralated
difeentfor
highy isápplicatons.
cheet, usng Tnter
proganmin ethcient ofaiet the
softesae
relatedto
to
can -paint, OBM various c+t. User pretr,runningfor
programu.
featu
be
man'y f. unningthe
Uses

photishop. Vipurpoe
S, Editor,
calle langoagt. dappieiny
eo diherentfor
player, A-S CM,
a
)(ipeatae
1C
a|
oty, Somal langvag ata and
sQL langoagc
bolt tock conruelron
eode
longvages Sym 1¬o Sinay
lerlalerte languaiges'mÍre- tim. tme. Dtermeslat
-objetode/
CneandanO.S
alsa pmgnmmihn -languages a ata
prayranmabe have at vas
swhking instutor inetoetiYn
on code/
Machinelngoage
level- Astembly code it
gore but objael
Non- High- 1
mtShell Progaiming allon -to- an proceu
Comypvte to
acu Tonvert ads SameLine
+T4 4TH
+ *
el
L,
sleh. case tonst cip3: datment 3
*C loys supporl o
wieh sysem.
slrlemewb dowhile
* whenthe etpres doesh m
ateh with anyons o
slatemont stotemol,. dolout .oternat iteetutod
Undhaand poganning qoto
ls Jomp pognnd goto label;
label; slalevenl

int mainf
b 20
(: 30

goto Som)
d: at b;

Sumall::atbtc
priktf SomtsYd, sum)

plagrom ave readabk undevtandable whi

’ stelsel
stutemeu t ladder ia long but upon
becomes reodable
or more

bak Used to come astot tie lbop


OR
Takes hel ototwhih nermat i
preuot.
t take contro l otof h ste h
statennt
valb; xCEnt
n,er priSCantnt
26) n,ai, int
C)
main
<sth)
aio. hinclode
ahre Lihear
se Perlorm
term
aand ctanprocedve a is search'
t linear *
diar amenstonsl To
student
3
matsBoRepoot
maksof
idnlsor valid a name
s
eKpvershe
vavtable cannot
be storad
be
Con shou! Elements
it aiae [max ay
nam ArOatatypo:
Arag
declare
an toHouw
sldiohs #inclode
Find mechanbm
to
no elemertl mdivioual dure
tndexing
die to is
clob toll we So
bront th)
l(comanlnod: Arays
C
in
;in (-1 for
Scan
Reprona R.
Iwo dimensibnal oyioys ’
ind afio]t] Pata
o.
celumns
has neolumny -tho
should as o hao
rows

the element omat


ncolumhi.
Read
include <st.hi
matn( )

You might also like