CS Electrical And Electronics
@cselectricalandelectronics

Write a function which accepts an array of integers and return the array by re-arranging the numbers such that the even numbers at the even places and the odd numbers at the odd places

All QuestionsCategory: C LanguageWrite a function which accepts an array of integers and return the array by re-arranging the numbers such that the even numbers at the even places and the odd numbers at the odd places
Anonymous asked 3 years ago

I need code.

1 Answers
Anonymous answered 3 years ago

Example:
Input: arr[]={10,11,12,15}
Output: {11,10,15,12}