The correct answer is D. fixed array.
A fixed array is an array whose size is declared at compile time. This means that the size of the array cannot be changed during the program execution.
A dynamic array is an array whose size is not declared at compile time. This means that the size of the array can be changed during the program execution.
The if ... then ..else
statement is a control flow statement that is used to execute a block of code if a condition is true.
The do while
loop is a control flow statement that is used to execute a block of code while a condition is true.
Here is an example of a fixed array:
int myArray[5];
In this example, the array myArray
has a size of 5. The size of the array cannot be changed after it has been declared.
Here is an example of a dynamic array:
int *myArray = new int[5];
In this example, the array myArray
has a size of 5. The size of the array can be changed after it has been declared.
I hope this helps!