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

What two nations emerged from the British colony of India in 1947?
In what ways was Santa Anna a typical caudillo?
The gathering at Amritsar (1919), the rallies in Soweto (1976), and the demonstrations in Tiananmen Square (1989) directly resulted in (1) rejection of West
Changing one base in a gene could have the most direct effect on the (1) function of the membrane of a cell (2) sequence of building blocks of a protein
Which is a carbohydrate monomer glucose,sucrose,glucagon,or glycogen ?
What was the purpose of the League of Nations?
Three consecutive whole numbers are such that if they be divided by 5,3 and 4 respectively, the sum of the quotient is 40. What are the numbers?
Why do you think that of all the cultures of Southeast Asia, Vietnam was the least influenced by India?
What protections are given in the 23rd Amendment?
Most management problems can be prevented by carefully defining the areas of: