CAPE Computer Science Unit 1 · 2015 · Paper 2 · Question 6(c)(iv)
C application for managing vendor fruit records (ID, cost price, selling price, quantity in stock).
Assuming two fruitRec variables pine and mango are populated, write C code to swap their cost price and selling price values.
The mark scheme is shown once you've answered.
Practise this question