Question
3.1.3 arrayCopy Write a function with comment blocks arrayCopy that can copy num elements starting from startIndex from a source array to a destination array.
3.1.3 arrayCopy Write a function with comment blocks arrayCopy that can copy num elements starting from startIndex from a source array to a destination array. The arrays are of type double. The arrays are defined with SIZE elements where SIZE is defined as a symbolic constant. The function will return 0 if the copy was legal. If it was not legal then it will return -1. This means you only perform the copy IF the range defined by num and startIndex is valid. For example if you wanted to copy 17 elements from arr1 to arr2 starting at index 7, then you would pass in the arrays, 17 and 7 and you would need to check if .. something is less than SIZE!!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started