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

18CTU01 _ Programming in C

The document appears to be a programming guide focused on the C language, covering various topics such as syntax, functions, and data types. It includes examples of code snippets and explanations of key concepts like global variables and arrays. The content is fragmented and contains numerous typographical errors, making it somewhat difficult to follow.

Uploaded by

segarsheethal
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

18CTU01 _ Programming in C

The document appears to be a programming guide focused on the C language, covering various topics such as syntax, functions, and data types. It includes examples of code snippets and explanations of key concepts like global variables and arrays. The content is fragmented and contains numerous typographical errors, making it somewhat difficult to follow.

Uploaded by

segarsheethal
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/ 22

SuBTECT GoDE:1sCTuo

SuBTECT NAME
PRDGRA MMING IN C
DATE t6 02- 2022

TtME 1:00 AM
12 30P M
No. F
PAGEs :
WRITTEN 7 222
SECTION B

6 b.KEY WORDS K

Raqwpids a fuiedejLed, Aecenmc


Med facqammNg Chiect iane
feid1 m to Che emfule.

ywends cannet

Aecved wods u
udurtigens Sie
std Lo

AnCeinal -efeaduon

SoME OF THE IyNOEDS


lot

dtull
Chon
f. a Stan f )

sLcuh t C) umelen msed to read


adaa Aaumg umeat dala
Reyooard.
SyATAX
8tant mat siurq, arqument- Luk)

P1untt C)
pAunt f 0
fwnetien s uscd to f u a t Zh
fuuat
Rtelin Ang o , el

SUNTAY
pAuhtt "genmaut suna
aumen- t)
*Se ima Sbungs tan
/ d
unttqey )

t
1 Cfloct), ete
# unelude t stdue h
vetd m u n C)

Lt a

Punt CEntn nummlier


s Lan t "°lo d , &a )s
Paunt t 0/6 d", a) ;

8b. PASSIKG AN ARRAY JoFuN CT(ON


Wtuen Me
fcass an
dinay lo a funelon,
it s
always auad c
fetnkin W
fasr
frainmatti
n UF
caset 1o tramuLaled cfiaat
cfaLat
ohecrurng vChe nd
stung ciarace

t Lncluds sldie h
veio un u t ans I , tte
unsqhed uu n
6

truntf od "
ars Ii]):

rt hMan O

Unt aunt1 ,2,3,, 3, 6,783


Unsiqned ant n
s r b ( ann )/51t (an Lel),
un ( a , n)5
Aewun 0
3

UTe(LT
23 18

qb. TATIC á GrLOBAL


VARIABLES
SLati Naandiles naa
Thrr Naalu ninn
afureqram
Toam fsV
fseNe
4Tncqnam eut
sLeftunitkr lecal
qlebal Nanuall
SLatiwannable can sed
wsLd ceunT
hew manu umuEs a
ceunT
guClon As called un
dfuueam
63NTAX
statue dala lypa aualle name = aluw

A stati
tatiie Waaaula usdudarrd usR4 stale
Reyw0ad t an cana
n l y c lan
Valus

GCLD 6AL YARIA6LE


TURLals dulaned ucnd
uteen Aalld
qlobal Naslables
Sru et
uttd loay 5urrehen
Runeuon an dess d modngy

qtelal rlalle

a p le

4Uneule stdue . h
Ln u n C)

Tai ut tount =0S

Ceunt+ +

trnt an )

Ln a
paunt + "°), d , fun () ;

unt t C/o d , fun C) ) ,

UTPUT

10.b
numaaa iem ( R m) As

dala
vdala dajned
tufurun C. SEAs aunly MLld to
to
ntrgnal c0tustan , Eh
fegcm a s ead
ad Leun laun

Jhe Ruy weud euum' s used o delas


YFs e
8yNTA
Caa Corst I, Conust?
ConytN
deaut , Cotust o Cens a s
and 80 n tcan le

-ALlA oliom
amp
t eneluds AMdieh
entum werk
3unday, Merdaut Jucs dat
Wrdnesddy JAuuns day, Jntday,
,

nt maun )

Ctuumn
week Leclay ,
Coday Wedres day ,
paut#( ay h d"
etunn o
today+ D
,

LTPuT
nb lLeKARy uNCTIONS N C

uAay uncmers dA anu


uneuor un
PavqaMung
fueto typF dala degunuEiens
hee ulebONs
Aesfcein eadu
hlts.Je ALS heer
heerutuos
reade
furnetio.
iam

warnt use R
uruelon ePr Auadrs fle funt i t)
Arueliided <stdio -h shoud
sheuld

ADYANTAGES F s tNG
BRA RY TUNCT1ON3
kBeARY uNeTONs!
JAty wek
Jh
uncior fumuued e
s+mare
8ANes
CeTLsLleialole dewelrfumRni
e
urcllens aIl fentalR
c

RO
12 a- Qnak Salement:

J Lneak statmmen end the


erp
mumedualely when tAs
s
ucoNeRLd
SyNTAX
sek

Sr neak sttemen
M&Rd s Umes r alw
wuth
wUCh i eee aluas
aaiment dnsids
sloÜemen he
Loep ursidr th

neluude 1 sdie . h S
urnt maun C)

deull wus
5um 0.0

Prunt t+ (Ene n7o


d", i9
san tC g numlen)
numulun <0.0
nlak
1

p1unt f(Sumc o. 2
,5 wm)s
Aeluan 0

TPUT
h

n 45
Enlea n 3 3 .
Enlii n 3
Bum 0 . 30

bn uu Sla meni

She Loniru StaÉRntent


CUAn
sups hu
Atinatven et hr
oep enenkinues
Kinues
wLth x ulratien

&NNTAx
Cotunue
always sed An
5 else slalemen
(13
1aple
#tncluAt takduo h
rt main C)

Cnt

de

Contuns

prntt "Vruluue oa: hd \n "


, a)
a+ t5
3 whlr (a <
eo )

uTeUT
valu a:10
Valu a
vatlu 6f a

a 13
Velu
Vulue
valus e a

valuw a

Valuw o a 17
13 a
uNETION

leck
code that
fao afuafu task t all tws you
defun ncOnsacendng Lo
Med Jhes
ureuons knevwn
4s.A- elepned funaluons,

uNCTION RO TO TY PE

funeaon
declaalien a
fnetePA smply th
uneuens
afundiuon rat
sfecugwe
NAMR,fLaLameeas
Ceesn Aona neliomahd retuan
elua

guneten Ley gmes


co nepl tha? Lh romalion
Ce used nCh ureton may
fgam .
S VNTAX

Rekvn yp
euo rame
(yp e 1

Cype aaqumment 2 aaeument ,


15)

add Nuwmers(tnt a , int b)

+ ha o h
unetion s
addN umlreis to
*actun yp Ch
we
funeluon u Ln
axqumers o yp atc
pass eel
Cha unehom

JRe uncon
fuetotyP ast ided
Teefied urelon Ai daned
hefe Tmain C) 4uutnen
anp.l
fwnciuen fietetype
t enclud <stdus R
Lrf Num - addaion
(tnt i, uutj9
Cr main C)

nuum 9 hum ?, etal


Prunt t ( PReake enlr Che
mumlea ")52
sLan t lo d d", &num,&um 2)
h a 3TRING

SLrng san a t t
ehandulcas
SuLqdeclaatror 2
eha Stt= 'A', '6,'c

STRING UNETLON

sthln t)
ds th
Lerta Eh aef a
shu
Synta

ramp le

unelude telio . R
unelude huq h
matn )

cAan st L 20J B Lqcaners Boek"


pAint+ ("tengek
etiuag st): %d',
stRenC st )
AAtunA 0,

0uTPUT engeh e urg s 13


statal J ap prnds Gne t u g at R
end of aneke

8yNTA
thasstitat ( charstI, Char sth 2 9

1ampe
t unelude atang -h
main C)

Chas I[1oJ Welle


Aas 2 LioJ "Nonld "
s cat Csi, sa ,
pAunt utp ut afui
JLuAN O, dencalination %s" s

TPuT

utpul a CeTLlalaraoon
le-N
l l oN aeld J
acpy
SNNTAX
ha ehas
siepy s ha s 9
S Lep Ls he
sug s2 eae
Cneluden eh end laung s 1
ehanselen
stac
eha sti eRa CCRd s , Ut e
t Seaher
dei hanaele
h.JRe Erung Mherh MMR
Chaada efule AUSLq Stteh
ERen LE
urletaLly qet cenvented
nls
fo etteA sa hg ehtcqrs
S
ehaa
ilehai sG, eRassch am
5 Umulas o
xeep Khat
seanches sauq h - Eerm us ad
SUge has
Is a
BINARYJILE &
3 unay fles A
Ney sUnullas o
the thal anoays
asaays
Anaays
tep eLaAy SoLage in he
memeay Bur
unary flesare
enmmatuent sloraqr n
dusks

S/0
efaialuens aAl
uch fdte wtth
ournary data
B
Uany es C uch
uuch smallea
sMallea h

S ene olalu
olald annet l t
Chandlin femal CenveAlEs oEo
Cenveults

he
h e
oasikfLaa utas Rat
ERat ead and
u l uneons e -and
uary us arc
adlnes ERe
uulen 0A Alad
SA neumei y t to lad fes Block
S
C

You might also like