What happens when you attempt to compile and run the following code?

What happens when you attempt to compile and run the following code?

#include <iostream>

using namespace std;

int main(){

int i, j;

for(i = 0, j = 1; j < 2, i < 4; i++, j++);

cout << i << " " << j;

return 0;

}
A . It prints: 4 5
B.It prints: 2 3
C.It prints: 3 2
D.It prints: 4 3

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments