Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C Prog Create a program that: Reads in the number of rows (row), the number of columns (col), then uses those to initialize a
In C Prog
Create a program that: Reads in the number of rows (row), the number of columns (col), then uses those to initialize a 2D array. Then, initialize the elements of the 2D array with some random values. Create a void function called oddEvensplit() that takes in 3 parameters: int row: row size int col: col size int arr[row][col] : the 2D array In the function, loop through the 2D array and separate the values out into two different 1D arrays, one for odd numbers and one for even numbers. Print out the elements of each array in the function. Example Enter row: 3 Enter col: 4 Enter array elements: 3 4 5 6 1 2 4 6 5 9 48 Elements of odd array: 3 5 1 5 9 Elements of even array: 4 6 2 4 6 4 8 Note: you do NOT have to follow this input styleStep 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