Home » Ask & Discuss » Board Exams - CBSE, ICSE, State Boards » Computer Science « Back to Discussion
Computer Science
Comments (2)
anchal singhal
Blazing goIITian

Joined: 21 Aug 2008
Posts: 380
23 Apr 2009 20:03:21 IST
Like
0 people liked this
plz reply..
Reply
2 May 2009 13:11:18 IST
Like
0 people liked this
create a new temporary array (same size as original array) using pointers and new operator.
check for oddness of elements in original array using a loop (from left to right) and copy them into temporary array from left to right.
then check for even nos in original array from left to right and fill them in temporary array from where you stopped.
Copy contents of temporary array into original array.
delete temporary array.
close function.
SIMPLE











