Solutions

Oct 25, 2014 at 8:28am
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 Oct 27, 2014 at 6:04am
Oct 25, 2014 at 8:39am
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.
Oct 26, 2014 at 4:20am
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.