Constants:- A constant is an entity that does not change.
| Primary | Secondary |
| Integer (-55,25) | Array |
| Real (21.4,2.0) | String |
| Character ('a' ,'+' ,'-' ,'2') | Pointer |
| ----- | Union |
| ------ | Structure |
| ----- | Enumerator |
| Integer Constant | Real Constant | Character Constant |
| An integer constant have at least one digit. | A Real Constant have at least one digit. | Character constant is single alphabet |
| It must not have decimal point. | It must have decimal point | It has single symbol & single inverted commas. |
| Limits: -2147483648 to +2147483647 | Limits: -3.4e38 to 3.4e38 | --------------------------------- |
Variables:- A variable is an entity that may change. Variables are the name of memory location where we store data.
[alphabet,digit,underscore] --- Variables
"Variables are the names of location where we store data".
for examples int a,b ------ where a& b are variables.
Keywords:- Keywords are the words whose meaning has already been explained to the compiler [C programming].
auto double int struct
break else long switch
case enum register typedef
char extern return union
constant float short unsigned
continue for signed void
default go to size of volatile
do if static while
Primitive Data Types :- Data Types which are Keywords are called Primitive Data Types.

3 Comments
Nice
ReplyDeleteKeep it up
ReplyDeleteThnks
Delete