Ask 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 no minimum

E. None of the above

+3
Answers (1)
  1. 29 May, 21:48
    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?
Find 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 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