c coding multiple choice questions
Assume there are no syntax errors in the following program segment and that it will compile: int i = 2; while (i < n) Assume there are no syntax errors in following program segment and that it will compile: int i = 1; while (i < n) Assume there are no syntax errors and that the following code will compile: Assume there are no syntax errors in the following program segment and it will compile: int x = 10; Assume that the following segment of code has no syntax errors and will compile: int i = 1;
What is the output of the following program segment?
———————————————————————————————————–
|