Constant variables:

a. Can be assigned values in executable statements.
b. Do not have to be initialized when they are declared.
c. Can be used to specify array sizes, thereby making programs more scalable.
d. Can be used to specify array sizes, but this makes programs harder to understand.

c. Can be used to specify array sizes, thereby making programs more scalable.

Computer Science & Information Technology

You might also like to view...

What do you need to do to display comments or saved annotations?

What will be an ideal response?

Computer Science & Information Technology

Write a C++ code fragment that is assumed to be embedded in an otherwise complete and correct program. You are to assume the user has been prompted (so you don’t have to) for (exactly) 20 values of type int to be read from the keyboard, You are to use this input to fill an array. Do not write a full program, just the code fragment to do this. Do give declarations of the array and any variables you use.

What will be an ideal response?

Computer Science & Information Technology