A main function as well as the nonzeros function


Write a complete Java/C++ program that includes: 
1- NonZeros function, which should create and return an array of integers containing all of the non-zero values in its parameter array A, in the same order that they occur in array A.
2- A main function as well as the NonZeros function. The main function should test NonZeros by creating several arrays, and calling NonZeros with each array. It should print the array it passes to NonZeros as well as the returned array.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: A main function as well as the nonzeros function
Reference No:- TGS084631

Expected delivery within 24 Hours