Data Type and Keywords in C Language

Hello friends how are you , Today in this blog i will teach you what is data types and Keywords. This post will be very useful for you if you want to become a good programmer because without knowledge  of  data type and keyword you can't be a good programmer.
Let's start
👉What is Data Type ?

1.It is a type of data which is used in the program.
2.There are many predefined data types in c library like int,char,float etc.

Basic TypeInteger Type(int)
Floating Type(float)
Character Type(char)
Derived TypePointer
Array
Structure
Union

👉Integer Type

Data TypeSize in bytesRange
short2-32768 to +32767
int2-32768 to +32767
unsigned int20 to 65536
long4-2147483648 to +2147483647
unsigned long int40 to 4,294,967,295

👉Float Type

Data TypeSize in bytesRange
float43.4E-38 to 3.4E+38
double81.7E-308 to 1.7E+308
long double103.4E-4932 to 1.1E+4932

👉Character Type

Data TypeSize in bytesRange
char1-128 to +127
signed char1-128 to +127
unsigned char10 to 255



👉What is Keyword ?

1.The word has a predefined meaning is called keywords.
2.It's functionality is also predefined.
3.It can not be used as an identifier.
4.There are 32 keywords are used in c.

👉List of Keywords

1.default
2.float
3.register
4.struct
5.volatile
6.break
7.do
8.for
9.return
10.switch
11.while
12.case
13.double
14.goto
15.short
16.typedef
17.char
18.else
19.if
20.signed
21.union
22.const
23.enum
24.int
25.sizeof
26.unsigned
27.continue
28.extern
29.long
30.static
31.void
32.auto

Request:-If you found this post helpful then let me know by your comment and share it with your friend.

If you want to ask a question or want to suggest then type your question or suggestion in comment box so that we could do something new for you all.

If you have not subscribed my website then please subscribe my website.

Try to learn something new and teach  something new to other.

Thanks.


Post a Comment

0 Comments