Final answer:
Initializing an array by giving it values upon creation means populating it with specific elements in one step, providing the array's initial contents in a single line of code.
Step-by-step explanation:
When you initialize an array by giving it values upon creation, you are populating the array with specific elements. This initialization process can often be done in a single line of code where the array is declared. The values you provide will become the array's initial contents, and they are stored in contiguous memory locations.
For example, in Java, you might initialize an integer array with the following syntax:
int[] numbers = {1, 2, 3, 4, 5};
This creates an array called numbers with five elements, each corresponding to the values within the braces. Initializing an array in this way allows for easier readability and efficiency in your code as you have declared and initialized the array in one step.