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;
Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...
No comments:
Post a Comment