Question: 4 . while ( i < 2 5 ) 1 6 . { 1 2 . { 7 . { 2 . { 5 .

4. while (i <25)
16.{
12.{
7.{
2.{
5.{
4. What is the output of the code fragment given below?
2. int i =0;
3. int j =0;
6. i = i +2;
7. j++;
8.}
cout << j << endl;
1.
2.
3.
4.
0
12
13
The code fragment displays no output because it does not compile.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!