Keywords in C language

 Keyword in C Language

The word has a predefined meaning which is known as ‘Keywords’. It’s functionality is also predefined and it cannot be used as an identifier, there are 32 keywords which are used in C language and the 32 keywords are listed below:

1. Default

2. Float

3. Register

4. Struck

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


Have you signed up with Rakuten yet? It's the best site for earning Cash Back. Get a $40 bonus when you sign up with the link below and spend $40. It's free! 🤩

sign up now!

25. Sizeof

26. Unsigned

27. Continue

28. Extern

29. Long

30. Static

31. Void

32. Auto


Data Types in C Language

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


Basic Type

1. Integer Type(int)

2. Floating Type(float)

3. Character Type(char)


Derived Type

1. Pointer

2. Array

3. Structure

4. Union


Integer Type

Data Type | Size in bytes | Range

1. Short    |    2 |    -32,768 to +32,767

2. Int |    2    |    -32,768 to +32,767

3. Unsigned int |    2    | 0 to 65536

4. Long    |    4    |    -2,147,483,648 to

    +2,147,483,647

5. Unsigned long int |    `4    |    0 to                         4,294,967,295



Float Type


Have you signed up with Rakuten yet? It's the best site for earning Cash Back. Get a $40 bonus when you sign up with the link below and spend $40. It's free! 🤩

sign up now!

Data Type | Size in bytes | Range

1. Float    |    4    |    3.4E-38 to 3.4E+38

2. Double 8 1.7E-308 to 1.7E+308

3. Long double    |    10    |    3.4E-4932 to

    1.1E+4932



Character Type

Data Type | Size in bytes | Range

1. Char    |    1    |    -128 to +127

2. Signed char    |    1    |    -128 to +127

3. Unsigned char    |    1    |    0 to 255


Comments

Popular Posts