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
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 Type | Integer Type(int) |
Floating Type(float) | |
Character Type(char) | |
Derived Type | Pointer |
Array | |
Structure | |
Union |
Integer Type
Data Type | Size in bytes | Range |
short | 2 | -32768 to +32767 |
int | 2 | -32768 to +32767 |
unsigned int | 2 | 0 to 65536 |
long | 4 | -2147483648 to +2147483647 |
unsigned long int | 4 | 0 to 4,294,967,295 |
Float Type
Data Type | Size in bytes | Range |
float | 4 | 3.4E-38 to 3.4E+38 |
double | 8 | 1.7E-308 to 1.7E+308 |
long double | 10 | 3.4E-4932 to 1.1E+4932 |
Character Type
Data Type | Size in bytes | Range |
char | 1 | -128 to +127 |
signed char | 1 | -128 to +127 |
unsigned char | 1 | 0 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
Here
I am requesting if you found this post was helpful for you then let me
know by your comment in below comment box and share it with your friend.
Also you can contact me on Instagram @rajusunagar_
If
you have not subscribed my website then please subscribe my website.
Try to learn something new and teach something new to other.
Thank you!!.......
0 Comments