CAPE Computer Science Unit 1 · 2012 · Paper 2 · Question 5(b)
Write a C function which accepts a positive integer, n, and returns 2^n. State any assumptions made.
The mark scheme is shown once you've answered.
Practise this questionWrite a C function which accepts a positive integer, n, and returns 2^n. State any assumptions made.
The mark scheme is shown once you've answered.
Practise this questionMore practice: the rest of this paper · more Modular Programming and Data Structures questions · all CAPE Computer Science Unit 1 past papers