subject

Write a function called combineArrays(int[], int, int[], int) that accepts in two arrays of ints and the size of the arrays as parameters. The function should then create a new array that is the size of both array combined. The function should copy the elements from the first array into the new array, followed by all the elements from the second array. So if the initial array is {1,2,3,4,5} and the second arrray is {10,20,30} then the new array will be size 8 and contain {1,2,3,4,5,10,20,30}. Then in your main(), create two arrays of different sizes, each at least size 10, and fill them with integers's. Run the arrays through your function created above and print out all three arrays to demonstrate that the concatenation method worked. Then run your method again using the same two original arrays, but in the other order. So if the first time you did array a then array b, the second time do array b then array a. Make sure to delete the new arrays before closing your program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Write a function called combineArrays(int[], int, int[], int) that accepts in two arrays of ints and...
Questions