I am currently going through old C++ exams and sometimes I need assurance that I have interpretted the question properly or that I have found the correct answer. I hope that if I go through some question and my answers( one at a time, but all in this post)I can get some feedback.
Firstly
Q) Post decrement the variable x by 1, then subtract it from the variable total and assign the result back into total
A)
x--; total-=x;

New Topic/Question
Reply




MultiQuote








|