Solved

Which of the Following Comments Would Be the Best Post-Condition

Question 7

Multiple Choice

Which of the following comments would be the best post-condition for this swap function void swap int& left, int&right) ;


A) //Postcondition: None
B) //Postcondition: the values of left and right are exchanged.
C) //Postcondition: left has the value of right
D) //Postcondition: left and right are unchanged

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions