New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What will i and j equal after the code below is executed? Explain answer.
int i = 5; int j = i++;
1 Answer
0
i is initialized to 5, the 5 is stored in j, and i is incremented to become 6.