Write a function in C++ which accepts an integer array and its size as
arguments and replaces elements having even values with its half and
elements having odd values with twice its value.
Example: if an array of five elements initially contains the elements as
3,4,5,16,9
then the function should rearrange the content of the array as
6,2,10,8,18
Answers
Answered by
1
Answer:
Plz plz plz plz plz do hard work and find it yourself
Similar questions