title: What is the time complexity of assigning multiple elements to the array using the notation that uses only a single code line?
body: <p>I am referring to something like:</p>
  <pre><code>int[] array = {1, 2 , 3, 4, 5};
  </code></pre>
  <p>Where the assignment of a value to each array index is done &quot;all in a single line of code&quot;.</p>
  <p>I do not really know for sure what happens in the background with this,
  but what I have imagined is that it's something like an iteration through each index in the array, and then assigning the inputted int to that index:</p>
  <pre><code>for (int i = 0; i&lt;array.length; i++){
  array[i] = &lt;given input&gt;  //for array[1] the value will be 1, array[2] is 2 and so on...
  }
  </code></pre>
  <p>If that is the case, it is in O(n) right?
  Though again, it is just my assumption of how the multiple assignments to an array occurs.</p>