10 marksSearching and Sorting Algorithms
CAPE Computer Science Unit 2 · 2010 · Paper 2 · Question 2(b)
A one-dimensional array num contains 20 unsorted integers. Write C code to accept an integer target from the user, search for it in num, print the location if found, or print an appropriate error message if not present.
The mark scheme is shown once you've answered.
Practise this question