How do I define the index within the array?

Write a statement that declares an array called numbers, with component type is int, and whose index ranges...?

  • 1. Write a statement that declares an array called numbers, with component type is int, and whose index ranges from 0 to 100. 2. Write a for loop that assigns the value of its index to each element of the numbers array. I.e. numbers[0] would be assigned the value 0, numbers[1] would be assigned the value 1,..., number[78] would be assigned the value 78, etc. 3. Write a for loop that outputs the values of all the elements of the numbers array.

  • Answer:

    Since you completely fail to mention a language......

Danny R at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.