What does a contain after the following code runs? int[] a = {1, 3, 7, 0, 0, 0}; int size = 3, capacity = 6, value = 5; int pos = 0; for (pos = 0; pos < size; pos++) if (a[pos] pos; j--) a[j] = a[j - 1]; a[pos] = value; size++;
Answers (1)
In order, the three-step process of using a file in a C+ + program involves a. insert a disk, open the file, remove the disk b. create the file contents, close the file, name the file c. open the file, read/write/save data, close the file d.
Answers (1)