Ask Question

What will the following code fragment print? for (i = 0; i < 9; i++);

cout << i + 1;

cout << i;

+5
Answers (1)
  1. 5 March, 19:07
    0
    This code will print 109.

    Explanation:

    Condition is the integer i is declared before the loop then the code will print 109. 10 because of the statement cout<
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What will the following code fragment print? for (i = 0; i < 9; i++); cout ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers