Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 variable

Explanation / 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.