Ask Question
6 September, 16:37

What is the minimum valid subscript value for array a?

#define MAX 50

int a[MAX], i, j, temp;

A. 0

B. 1

C. Any negative number

D. There is no minimum

E. None of the above

+3
Answers (1)
  1. 6 September, 18:11
    0
    The answer to this question is A. 0.

    Explanation:

    In this segment of code #define MAX 50 is used. It is a pre-processor directive and in pre processor directive it is a MACRO means whenever the compiler encounters the word MAX in the execution it replaces MAX with 50.

    So the size of the array becomes 50 and the indexing starts from 0 and upto 49.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the minimum valid subscript value for array a? #define MAX 50 int a[MAX], i, j, temp; A. 0 B. 1 C. Any negative number D. There is ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers