CAPE Computer Science Unit 1 · 2012 · Paper 2 · Question 6(b)(iv)
A grocery application requires storing product records containing an integer ID, integer quantity in stock, and floating-point price.
Assuming two productRec structs, item3 and item4, are already loaded with data, write C code to exchange their values.
The mark scheme is shown once you've answered.
Practise this question