Chapter 9: Problem 7
What is the output of the following program segment? int temp [5] \\[ \begin{array}{l} \text { For }(\mathrm{int} \mathrm{i}=0 ; \mathrm{i} < 5 ; \mathrm{i}++) \\ \text { temp }[\mathrm{i}]=2 * \mathrm{i}-3 \mathrm{r} \\ \text { for }(\mathrm{int} \mathrm{i}=0 ; \mathrm{i} < 5 ; \mathrm{i}++) \\ \text { cout } << \text { temp }[\mathrm{i}] << \mathrm{m}, \end{array} \\] cout \( < < \) endl cout \( < < \) endl;
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.