CAPE Computer Science Unit 1 · 2009 · Paper 2 · Question 5(b)
Write a C function that takes two distinct integer parameters, a and b, and returns the larger integer.
The mark scheme is shown once you've answered.
Practise this questionWrite a C function that takes two distinct integer parameters, a and b, and returns the larger integer.
The mark scheme is shown once you've answered.
Practise this questionMore practice: the rest of this paper · more Procedural Programming Constructs in C questions · all CAPE Computer Science Unit 1 past papers