DylanF9889 DylanF9889
  • 19-07-2019
  • Computers and Technology
contestada

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

Respuesta :

ExieFansler ExieFansler
  • 30-07-2019

Answer:

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.

Answer Link

Otras preguntas

Which equation is shown on the graph? A. y = 2x B. y = x – 2 C. y = 2x + 2 D. y = x + 2
18/54 in simplest form
in sunlight, a vertical stick has a height of 4 ft and casts a shadow 2 ft long at the same time that a nearby tree casts a shadow 18 ft long. how tall is the t
a teacher has a bag of 100 unit cubes. she gives an equal number of cubes to each of the 7 groups in her class. she gives each group as many cubes as she can. h
(Order of operations) A+B+2A-3B=
What are the six major nutrients and what are the functions of each?
A cat spends about 7 out of 10 hours sleeping. About what percent of s cat's day is spent sleeping
what is a analogy for goat
12 dogs decreased by 25%
how can i Write a paragraph about track and filed