Solutions

I am just practicing more functions. I would appreciate a solution to these two questions:

1) Write a function that takes as input an array of integers, its size as an integer, and reverses the contents of the array.


2) Write a function that takes as input:
-An array of chars, called text
-An array of chars, called target
-Integers start and end
That returns true if target matches exactly to text, in elements start to end and false otherwise.

*The simplest and easier to understand the better!*
Last edited on
Sounds like you're trying to get us to practice for you. Take a stab at it, then post specific questions if you have problems with your attempts.
I did, but some of it doesn't make sense to me. I would appreciate if there was a source for example solutions for these two questions!
Topic archived. No new replies allowed.