Challenge: Set the Odd Elements in a Dynamic Array to -1
Test your knowledge by solving a challenge in this lesson.
Problem statement
Your task is to write a function set_odd. In function parameters, we will pass:
-
Pointer
arrthat will point to an array of typeint...