Question: Write a C++ program that initialize an array of size 10. Create a generic code that stores length of each number in array into another

Write a C++ program that initialize an array of size 10. Create a generic code that stores length of each number in array into another array called length array. For example, in below example, length of 45 is 2 hence 2 is stored on zero index of length array, similarly length of 6709 is 4 hence 4 is on 1 index Example: Array: 45 6709 85 945454 1011 1 1 6 2 98 Length_array: 2 4 2 6 4 2 1 1 1 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
