What is the output of the following code?
int a = 3;
for (int i = 5; i > 0; i--)
{
a = a + i;
cout << a << “ “;
}
int a = 3;
for (int i = 5; i > 0; i--)
{
a = a + i;
cout << a << “ “;
}
int a = 3;
for (int i = 5; i > 0; i--)
{
a = a + i;
cout << a << “ “;
}
a) 7 10 12 13
b) 7 10 12 13 13
c) 8 12 15 17 18
d) 8 12 15 17 18 18
c) 8 12 15 17 18
You might also like to view...
The height of a wave indicates volume, which is technically called ____.
A. digitized sound B. audio sound C. amplitude D. peak
The Ribbon cannot be customized
Indicate whether the statement is true or false
Place the following phases defined in NIST SP 800-27 Rev A in the correct order
Development/Acquisition Disposal Implementation Initiation Operation/Maintenance
In the diagram shown here of security boundaries within a computer system, what component's name has been replaced with XXX? User Space Process Process Reference Monitor TCB XXX Process
A. Kernel B. Privileged core C. User monitor D. Security perimeter