Challenge: Set the Odd Elements in a Dynamic Array to -1
Test your knowledge by solving a challenge in this lesson.
We'll cover the following
Problem statement
Your task is to write a function set_odd
. In function parameters, we will pass:
-
Pointer
arr
that will point to an array of typeint
-
The
size
of anint
array
Get hands-on with 1400+ tech skills courses.