i will iterate through 0 & 1
j will iterate through 0 & 1
the first iteration (i = 0; j = 0) results in equals = 1
the next iteration (i = 0; j = 1) results in the else block executing
equals = 1
A. 1
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
4ba36e7
1 month, 3 weeks ago