CAPE Computer Science Unit 1 · 2015 · Paper 2 · Question 6(c)(i)
C application for managing vendor fruit records (ID, cost price, selling price, quantity in stock).
Write a declaration for a C struct fruitRec to store a fruit's ID (int), cost price (float), selling price (float), and quantity in stock (int).
The mark scheme is shown once you've answered.
Practise this question