Answer:
for(i = 0 ; i < NUM_VALS; ++i)
{
cout << courseGrades[i] << " ";
}
cout << endl;
for(i = NUM_VALS-1 ; i >=0 ; --i)
{
cout << courseGrades[i] << " ";
}
cout << endl;
Explanation:
The first loop initializes i with 0, because we have to print the elements in order in which the appear in the array. We print each element, adding a space (" ") character at its end. After the loop ends, we add a new line using endl.
The second loop will print the values in a reverse order, so we initialize it from NUM_VALS-1, (since NUM_VALS = 4, and array indices are 0,1,2,3). We execute the loop till i >= 0, and we print the space character and new line in a similar way we executed in loop1.
Well bro you see what you gotta do is be a gamer.
HIT OR MISS
I GUESS THEY NEVER MISS
H U H ?
YOU GOT A BF?
I BET HE DOESNT KISS YA
M U A H
It be like that sometimes b r u h
The options are missing from the question.
Below are the options.
A) 192.168.15.0
B) 192.168.15.16
C) 192.168.15.32
D) 192.168.15.64
Answer: The correct option to the question is option D
192.168.15.64
Explanation:
The Network is: 192.168.15.64/26 11000000.10101000.00001111.01000000
Then the Broadcast is: 192.168.15.127 11000000.10101000.00001111.01111111
We see the HostMin as: 192.168.15.65 11000000.10101000.00001111.01000001
And the HostMax as: 192.168.15.126 11000000.10101000.00001111.01111110
Answer:
The answer is "None of these".
Explanation:
In the given question an array "sales[]" is declared, which contains 50 double type elements, and in the next line, an integer variable j is defined, which uses a for loop. In this question two options is given, in which both are not correct, that can be described as follows:
- In option (i), A loop is defined that, uses variable j which starts with 0 and ends with 48, So total elements are 48 that's why it is not correct.
- In option (ii), A loop will use variable j that, starts with 1 and ends with 49, That's why it is not correct.