Ask Question
24 October, 04:48

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. 24 October, 05:56
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers