what type of variable will you use in a program if you want the value stored in
ID: 3810994 • Letter: W
Question
what type of variable will you use in a program if you want the value stored in a variable to be fixed without the possibility of it being corrupted or changed accidentally later in the program? a) unfixed constant b) symbolic Constant c) dynamic variable what type of variable will you use in a program if you want the value stored in a variable to be fixed without the possibility of it being corrupted or changed accidentally later in the program? a) unfixed constant b) symbolic Constant c) dynamic variable a) unfixed constant b) symbolic Constant c) dynamic variableExplanation / Answer
Its b) Symbolic constant.
It is because Symboilc constants are Pre-Processed like header files and MACROS. They are considered to be literals and not variables and hence the value against it remains unchanged.
For ex:
#define PI 3.14
So in your program you can use Litereal PI instead of 3.14.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.