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

N+5/16=-1 what is the answer?
Can the sum of two mixed numbers be equal to 2?Explain why or why not.
What is the square root of ab^2
Latin is no longer spoken why do people still study it
Simplify the radical 72
The points (-2,-4) and (8,5) are the endpoints of the diameter of a circle. Find the length of the radius of the circle.
what is the consonant of the word MATH
A bookcase has a base of 1 m long and 0.5 m wide. It has a mass of 300kg. Find the pressure it exerts on the floor in kPa.
A bookcase has a base of 1 m long and 0.5 m wide. It has a mass of 300kg. Find the pressure it exerts on the floor in kPa.
Romeo and Juliet - Act V Scene iii How does Romeo’s response upon learning of Juliet’s death reinforce the belief in fortune and fate?