Lab5 ReadMe PDF
Lab5 ReadMe PDF
1
void reverseArray(int num[],int left, int right);
The function should reverse the elements of the array passed to it in the range
[lef t, lef t + 1, . . . , right].
For example, if the array is {1, 2, 3, 4, 5, 6, 7}, calling reverseArray(num,2,4) will yield
the array {1, 2, 5, 4, 3, 6, 7}.
8. Write a recursive function to compute the nth Fibonacci number.
9. Write a function that accepts an input string (including spaces) and then removes
all the spaces. For example, if the input is ”One two three”, the output should be
”Onetwothree”.