Alphabets, Numbers are Special Symbols are Combined to from Constants, Variables and Keywords
Types Of Constants:
2. In Programming Language The Variable Used to Store the Data ( Value ).
Ex: int x = 10;
Here, x is Variable , 10 is integer.
2. Here, The Some Keywords Already Using The C Compiler.
Ex: break, for, if, int, float, char, ......
3. Keywords Can't be Used as Variable names.
Conclusion
Type Keyword Example
Integer int int a; int age;
Real (or) floating Point float float x; float average;
Character char char s; char initial;
ConstantsA Constant is an entity that doesn't change.
Types Of Constants:
- 1.Integer Constant
- 2.Real Constant
- 3.Character Constant
Integer Constant : The integer Constants are contain " Number Only ".
Ex: 25, 55, 65.
Real Constant: The Real Constants are Contain " Real Number are float Number ".
Ex: 25.52, 0.05,0.25.
Character Constant: The Character Constants are Contains " Character Constants (or) alphabets " .
Ex: 'a', 'A', 'z'.
Variables1. An Variable is an entity that does change.
2. In Programming Language The Variable Used to Store the Data ( Value ).
Ex: int x = 10;
Here, x is Variable , 10 is integer.
Keywords1. By Using Keywords We Can Constant The Meaning Full Statements.
2. Here, The Some Keywords Already Using The C Compiler.
Ex: break, for, if, int, float, char, ......
3. Keywords Can't be Used as Variable names.
Conclusion
Type Keyword Example
Integer int int a; int age;
Real (or) floating Point float float x; float average;
Character char char s; char initial;
No comments:
Post a Comment