0
Arrays (62??)
In this example, value 42 is assigned to the third element of the array. What happens to the 62? Does it get shifted to the fourth element as there is no set maximum in term of element values? int b[] = {11, 45, 62, 70, 88}; b[2] = 42;
3 ответов
+ 8
Anthony Bankam Jr 62 will be overwrite with 42 and rest element are remain same no shifting it's just vanishing the 62 and writing over 62 with value 42
+ 1
Thanks
+ 1
Anthony Bankam Jr, if you don't specify the length of an array, it will be just long enough to hold the values you initialize it with.