0% found this document useful (0 votes)
12 views8 pages

Data Types

Uploaded by

janumahajan25
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)
12 views8 pages

Data Types

Uploaded by

janumahajan25
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

Data types

declaratiem fe vauabls t duth-


det-
Data tpes are

te pe&sze data assotiatisl


wwt vaniakle.
e ex. t
varuabu
p-legn
Li- bytes
Data pes a dinideol to thrne Caleams
Data tP

Prumau Deruned Uae-dirad


Data p e Data p Data type
veic a
wtea
chan L Poutn Umbn
L, featuiga
pout

Phunma Dota t4pe


are alttady
meaug pkumay datalspe
dofiued w pheesammaa
eapw data type decmal bant.
t h a g whol u b e s
wtheut
i uAed to epkesemt e
he keywed_ nt

eommplu n t zs
shot a a
wmsugned mt

loug unt
Kanga
Datatype Bytes FOTmat mnimum mAumuum

hort n t 1 -2T -

128 2-1+127
Unsianad 1 2 281 255
shet t

umsigned 2 u -1 6553|

nt 2 % d -23276821:3276

g ut Y Ld 2 23-1

wwwgned? 2-1
COug w l
alsSMAte
Date
Page

Yephesent stmgl cdhanain. c


Th keywoud ehar i
uard orepvest
Dota ype Bytes Format ww.mAumRamg marnmwm
char C - 128 27
255
Enamplo cha ttu B'
chaw diait - 5

3)Hoating Yout datalype


t u used to repre4t nww.beA w doemal bGnt

uAes kywerd, Bat_pr deuble


Cn oat aNge dsulele a i e
NuumamCa! Dig, Fomat
AAeiAL
Dataypa Ronaa

tgat Abutes -34xloh134XI


308
8 b4to /Xo
7 4 x /40

-1.1X 1o
y93a 18 L
o btus fljx)o
4932-

deulte
veid -empt)
void tpe d
ed to montc
not hoe amythmg E
lt does
uncken wet no vetuww yalue Or a md
o
2ametw,
does hot hane amy
er ex - mt) sum (a,b); parametey
etwn
ype tnctiom nam
Void sum);_

Proqram to shero the wse of primary data qpu


#mclude <stdo.h>
mcludu cemuo-w> The le0u val u Ho
Ved mam ) ha nawatey valu ha 4
The teat value b 3.141
mt a 10 he dodelL valun S47S
chae b G
OutpuT
toat c 3,14)
deuble d p.471125
brintf The uleaew value & %d", a)
prnt (nThw chaacter value e b
prntf(n The Hoat value u 7 Q
bvutf(" n The doublu value y %K d)
qti );
PDeived Daape Thes dala typt are
These
ve4 o pimitive datoa upu e

dataitemsAoudU conänubws MemOas


oraions
2030 uo | 6o
Sweot
eewendt
0 2 a indeceg

Con e dimensionay, -dimencomal

' Functhon A urctionna bleck et stademerde


tho ose dleined o pArhpam Borna Apecuc
Toak epeatel int Aruaneat n)
A p l e Nadmau n )
int oum
Mum8uare (u)

mum AAUA 5 13
oaG connFanfon1
uontu oitntes asle apecialVauahle
(Save)
ad ae used topoint ddhns
Qnoten vuably
2a 200
forewample iut xp
int alo Ptx200o S000

ptx a
'a'
tolds olostns o vauanle

USesl dehied dalapy


data R Jhad 0s delined by ust
hr aleddoived da tups
These indude E
1 Hudu 57 he Atuctue0at4
a data HpA had gaubA Aogutheh.
ctyexot dad typ into p QRaup
Pochdata ype eet indiulclusl memo
Apace
nauple
ANtAudnt odlterent data

roll-no t y r e i n a

UhaniALchiemi BMe

cLaul umeTio; Bfuole

leatmorki
rolno 5
SOD2
etho 5eo
Mamt
So13
uuoionskke tiuctien it in usndefined ,

dala tpe but ahone cemnm memou


0 u i b m e mbls
fer emauplei- r
sechon
d L n e L

Uionstudenk So02
int HOlUn o Sco3
nam
Sooy
he chon;nol
Solo

lak mases
9

You might also like