2010 Dec 23 1:59 PM
Can anyone find the difference between literals and constants ?
Can anyone find the difference between literals and constants ?
2015 Jan 07 4:25 AM
A literal is a value that is expressed as itself. For example, the number 25 or the string "Hello World" are both literals.
A constant is a data type that substitutes a literal. Constants are useful in situations where
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |