destinyhammons12345
18.09.2021 •
Geography
Please help meeeee no one is helpingg
Solved
Show answers
More tips
- F Family and Home When and how to start introducing solid foods to your baby?...
- C Computers and Internet Keep Your Mouse Pad Clean: The Right Way to Clean It?...
- F Food and Cooking Homemade French Fries: The Ultimate Guide...
- F Food and Cooking Red Caviar: How to Choose the Best?...
- C Computers and Internet Clearing Cache: How to Speed Up Your Browser...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking Everything You Need to Know About Pasta...
Answers on questions: Geography
- M Mathematics . Una persona desea realizar una pintura para su próxima exposición en donde esta tenga tres colores fluorescentes y dos colores pastel, al realizar la revisión de...
- H History Which of the following is not a characteristic of fascist governments? a. single political party b. racial unity c. extreme nationalism d. religious freedom...
- B Biology Magnesium (Mg): 1s22s22p63s2 core electrons valence electrons...
- S Social Studies Which of the following statements is true? HINT: THERE IS ONLY ONE ANSWER I WILL GIVE BRAINLIEST IF CORRECT PLS HELP ASAP. 1. Water changes into a gas at 100° C.2....
- E English Based on paragraph 2 of this speech expert ,what was president kenndedy s position on the expense of the space program...
Ответ:
I think the answer is B
Explanation:
As a result of some geographical challenges the ships couldn't get to it destination so as a result the sailor couldn't get the ship cannons to the lapu lapu warriors. I hope this helps.
Ответ:
Ответ:
Option 1: May crash at runtime because it can input more elements than the array can hold
Explanation:
Given the code as follows:
int[] a = {1, 3, 7, 0, 0, 0}; int size = 3, capacity = 6; int value = cin.nextInt(); while (value > 0) { a[size] = value; size++; value = cin.nextInt(); }From the code above, we know the a is an array with six elements (Line 1). Since the array has been initialized with six elements, the capacity of the array cannot be altered in later stage.
However, a while loop is created to keep prompting for user input an integer and overwrite the value in the array started from index 3 (Line 4- 9). In every round of loop, the index is incremented by 1 (Line 7). If the user input for variable value is always above zero, the while loop will persist. This may reach a point where the index value is out of bound and crash the program. Please note the maximum index value for the array is supposedly be 5.