What is main data type in C? | How many data types in c

hi everyone welcome to coding idea

<inage>

What is main data type in C?

this is universe in a last session so we 
had discussed about a short variable and
some of the examples of a short datatype
so now today the discussion about a
character data type in C language here
character data type so just like a short
data type character data type also
divided into two types one is a signed
data type and second one is a unsigned
data type first one is signed data type
second one is unsigned a data type here
it is either it is assigned a data type
or unsigned a data type a character
occupies only one byte character

What is data type and its types in C?

occupies only one byte memory either it
is assigned byte or it is an unsigned
byte unsigned means what it will accept
only positive values and the sign means
what it will accept both positive values
as well as a negative values right but
here it is whatever the type character
occupies only one byte so based on the
one byte what is the minimum value we
can store and what is the maximum value
we can store here one byte means we
should find out the value of a to power
8 what is the to power 8 value is a 256
value to power eight value is a 256 but
here it is a positive value starts with
a 0 so 0 to 255 so this is the range of
signed data type 0 to 255 is the range
of sorry unsigned the data type and here
it is assigned a data type here it is 2
power 8 by 2 is nothing but a 256 by 2
256 by 2 the value is what - 128 2 plus
127 if you make it half exactly
right assigned a data type and unsigned
a data type here it is signed data type
range is a minus 128 2 plus 127 reason
256 by 2x act 1/2 is a 128 so negative
values starts with a minus 1 so minus 1
2 minus 128 and so on
minus 128 is okay but positive values
starts with a zero so up to 127 only
because 0 plus 127 total 128 so these
are the limits of character data type
sign character data type is minus 128 2
plus 127 unsigned a data type is 0 to
255 only positive values it will take
sir everything is ok but here it is

How many data types are in C?

using character data type we are storing
symbols capital a capital B small a
write some other special symbols we are
storing so then how can we represent in
integer sir why character data type
limits representation in integers that
is the question so many questions right
they will ask on a character data type
so what all the questions see first
question why character limits

representation in integers this is the

first question they will ask second
question how can we store how can we
store a symbol a symbol into one byte
memory nothing but Y character occupies
one byte memory is the question
next one what is character system what
is character system next question what
is as key what is as key these are the 4
questions they will ask on character
data type first one Y character data
type limits

How many data types in c

we are representing in integers second
one how can we store a symbol into one
byte memory and the third one is what is
character system last one is what is
ASCII character system these are the
four main questions they will ask on a
character data type right so we will see
write all these things

see for example so whenever we are

writing program suppose a simple program
I am writing simple program hash include
hash include its own so stdio dot H main
inside the main I am declaring one local
variable a with the value 10 and
remaining instructions as usual this is
a simple program I have written so what
is this source code so we can call it as
a source code the first session we
already discussed so whatever the

What are the basic data types in C?

program you have written using any
programming language so that system
cannot understand so because system
understands only binary language but you
have written English statements right so
this is a system cannot understand any
name you can give suppose I am giving
program extension is a dot C extension
dot C so we should convert all these

high-level instructions into low-level

who will convert compiler is a
predefined program this is we need to
pass as an input to the compiler then
compiler will generate that code binary
instructions code it will generate
binary instructions code suppose here
here so compiler need to convert all
these high-level instructions into

machine level then it has to convert

this consider ten it will convert into
binary suppose one zero one zero it can
convert reason we have a pre-proposal
number system in mathematics write a
number system concept me know how to
convert write a decimal value to binary
value

How many data types are used in C?

binary value to octal octal to
hexadecimal write hexadecimal to binary
for all these conversions equations
already present so many formulas they
provided so using number system concept
right we can convert a decimal value
into binary value but here the problem
is Sir how it converts hash into binary
so how it converts a special symbol into
binary how it converts E into binary all
these questions right here it is a

decimal values okay numbers okay right

number system is they're using number
system we can convert easily but here
the question is so how characters will
be converted so that is why along with
the programming languages they
introduced the concept of character
system they introduced the concept of
character system only for programming

languages only for computer programming

languages they introduced the concept of
a character system so what is character
system using character system you can
represent one entire language any
language suppose English language
capital letters small letters digits
special symbols the entire language all
the characters you can represent using
constant integer values that is called
character system so how many character

What are the data types in C give examples?

systems are available a list will come
if you search in the google write a list
will come so number of character systems
are available first computer introduced
into the market by IBM IBM is having its
own character system right but here it
is now the famous one is a ASCII
character system the famous one is what
ASCII character system every programming
language follows ASCII character system
only n number of character systems are
available in the market but the famous
one is a ASCII character system how how
using ASCII character system we can
represent one particular language will
see ASCII character system see suppose
he

for English language right here it is we

are discussing about ASCII sir what is
ASCII what it stands for Americans
Standard Code for information
interchange for information interchange
this is this is as key stands for
Americans introduced a standard code
standard code means it is a fixed code
no one can change the value

no one can modify the value it is a

fixed code so why what is the use it is
used to interchange the information used
to interchange the information from
high-level language to low-level
language we are converting that is we
are interchanging to that interchange we
are depending on ascii how it represents
how it represents means see for example
capital a is represented by a constant
integer value 65 this is the fixed value
no one can change this value next one
for capital B it is 66 capital C it is

short data type in c

67 and so on capital Z it is 90 it is 90
for example small a is a 97 small B is
98 and so on for small Z it is 122 and
x1 4 digits also 0 is a 48 149 and so on
9:57 using the digits 0 to 1 you can
construct any number you can represent
any number so only 0 to 9 ASCII values
they have given and for other symbols
also for example if it is a hash the
value is a 35 suppose if it is a space
the value is 32 and so on for every
symbol for every character digit special
symbol

so whatever the symbol it is that is

represented by a constant integer value
in a character system not only in ASCII
character system in any character system
which is available in the market right
so this is the representation of
character system the representation of
one language so whatever the language is
not programming languages write a

general languages like Telugu English

Hindi Tamil for every language there is
a corresponding character system right
here it is we are representing English
language using ASCII character system
and these are the standard values sir
programmatically can we show yes right
it is possible I will show you so
whenever we start programming and all
these things okay and here it is a one
more last question sir how can we store
a symbol into one byte memory how can we
store a symbol into one byte memory see
just count all these values count so
total 26 capital alphabets we have in a
English and here it is 26 small letters
and next one 10 numbers and next one for
example the special symbols 150
definitely not more than 150 so here it
is if you add all these things that is
less than 256 only less than 256 any
language you can take in this world any

How many data types in c

language no matters right every language
is at most having two fifty six symbols
only more than 256 symbols there is no
such language in this world very sure
okay so Americans decided that if we
assign the values for these symbols from
0 to 255 so you can represent any

character in the language using a one

byte memory sir how can we say that one
byte memory C 256 is nothing but a 2
power 8 value 2 power 8 is nothing but a
one byte memory this is the only reason
every character we can represent using
one

by it memory in a programming languages

this is the only reason okay so once
again why character data type
representation in integers because we
are representing a character using
character system character system means
representing all the symbols of one
programming language

What is main data type in C?

representing write all the characters of
one programming language using constant
integer values using constant integer
values that is important so that is why
write character data type representation
also using integers only using integers
only we are representing and next one
why a character occupies only one byte

means write the number total number of

symbols in any programming language
definitely not more than 256 the best
example write a laptop keyboard or
desktop keyboard a standard keyboard is
having how many keys one not for case or
one not six keys by using shift button

sir we can press one more one not for

yes of course one not for plus one not
for totally to not eight that means not
even a 256 enough right just using two
not eight numbers you can represent one
complete language all the characters of
one language so that is why Americans
have provided constant integer values
between 0 to 255 numbers only right so
this is all about the character systems

What is data type and its types in C?

and this is all about why character data
type occupies only one byte memory and
why character data type representation
in integers okay some of the programs on
character data type we will see in the
next session for more articel

Post a Comment

0 Comments