Why does (n2 equal to 5) and (n4 equalfrom the code below, could someone please explain in depth?
// declaration of variablesint n1, n2, n3, n4n1 = 5;n2 = n1++;n3 = 5;n4 = ++n3;//outputs calculationcout << n1 <cout << n4 << endl;
No comments:
Post a Comment