Answer:
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 <em>a</em> 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 <em>value</em> 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.
The answer in the space provided is the bullets as this is
the graphic elements that are used in each items that is organized in a list in
a way of making the list more clearer and more presentable with the given
indications or symbols.
Answer:
If it's for school idk but I have a brothers printer and it has worked since 2009
Explanation:
A brute force is the type of attack that occurs when other users on a network are locked out because an intruder is trying to gain access by guessing a large number of password.
<h3>What is a
brute force?</h3>
A brute force attack refers to a situation where someone uses a trial-and-error to guess login info, encryption keys etc.
In conclusion, the brute force is the type of attack that occurs when other users on a network are locked out.
Read more about brute force
brainly.com/question/2323336