Ask Question

Using static arrays, depending on the number of servers specified by the user, a list of servers is created during program execution.

True

False

+4
Answers (1)
  1. 26 January, 16:22
    0
    False

    Explanation:

    Static arrays are stored on the stack, having fixed size and scope within functions.

    Example-

    int arr[10];

    Static arrays can't update the values given by the user at the time of execution, they are initialized with some default values. So, we can't create list of servers at the time of program execution.

    But we can create list of servers using Dynamic arrays, because size is not fixed as it stores in heap and update at the time of execution.

    Example-

    int * arr = new int[10];

    delete[] arr;
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Using static arrays, depending on the number of servers specified by the user, a list of servers is created during program execution. True ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers