The below question refer to the program segment. (Assume that all variables are of type int.)
```
z = 0; g = 0; s = 0; i = 0;
while (i < 50)
{
cin >> t;
s += t;
if (t >= 0)
g++;
else
z++;
i++;
}
```
The value stored in variable z at the end of the execution of the loop could best be described as the .
a. number of positive items read
b. sum of all positive items read
c. number of negative items read
d. sum of all negative items read
e. sentinel value terminating the loop
c. number of negative items read
You might also like to view...
Which type of security device can speed up Web page retrieval and shield hosts on the internal network?
A. caching firewall B. proxy server C. caching-only DNS server D. DMZ intermediary
You can enter different characters, such as placeholders, separators, literal characters, and colors, in the ________ of a field to create a custom format
Fill in the blank(s) with correct word
After you have exported PowerPoint slides into a Word document using the Blank lines next to slides option, you can use Word to change the page orientation and margins
Indicate whether the statement is true or false
Cell content can be one of two things: a constant value or a(n) ________
Fill in the blank(s) with correct word