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:

Verified
Correct Answer:
Verified
Q2: If you write a function that should
Q3: In a function with call-by-reference parameters, the
Q4: In the following function, what is passed
Q5: Given the following function declaration and local
Q6: You should make a parameter a reference
Q8: What is the output of the following
Q9: The following is legal in a void
Q10: A void function can return any value
Q11: pre and post conditions for a function
Q12: In a function with call-by-reference parameters, any