00:01:45 1 Use
00:02:52 2 Comparison with literals and macros
00:06:41 3 Dynamically-valued constants
00:09:29 4 Constant function parameters
00:11:13 5 Object-oriented constants
00:12:38 5.1 Java
00:15:40 5.2 C#
00:16:38 6 By paradigm
00:19:11 7 Naming conventions
00:19:58 8 See also
Listening is a more natural way of learning, when compared to reading. Written language only began at around 3200 BC, but spoken language has existed long ago.
Learning by listening is a great way to:
- increases imagination and understanding
- improves your listening skills
- improves your own spoken accent
- learn while on the move
- reduce eye strain
Now learn the vast amount of general knowledge available on Wikipedia through audio (audio article). You could even learn subconsciously by playing the audio while you are sleeping! If you are planning to listen a lot, you could try using a bone conduction headphone, or a standard speaker instead of an earphone.
Listen on Google Assistant through Extra Audio:
Other Wikipedia audio articles at:
Upload your own Wikipedia articles through:
Speaking Rate: 0.8225985117392316
Voice name: en-AU-Wavenet-A
"I cannot teach anybody anything, I can only make them think."
- Socrates
SUMMARY
=======
In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant. When associated with an identifier, a constant is said to be "named," although the terms "constant" and "named constant" are often used interchangeably. This is contrasted with a variable, which is an identifier with a value that can be changed during normal execution, i.e., the value is variable. Constants are useful for both programmers and compilers: for programmers they are a form of self-documenting code and allow reasoning about correctness; while for compilers they allow compile-time and
run-time checks that constancy assumptions are not violated, and allow or simplify some compiler optimizations.
There are various specific realizations of the general notion of a constant, with subtle distinctions that are often overlooked. The most significant are: compile-time (statically-valued) constants, run-time (dynamically-valued) constants, immutable objects, and constant types (const).
Typical examples of compile-time constants include mathematical constants, values from standards (here maximum transmission unit), or internal configuration values (here characters per line), such as these C examples:
Typical examples of run-time constants are values calculated based on inputs to a function, such as this C++ example:
0 Comments