Suppose we have an array of 10 elements and we have to separate the positive elements and negative elements and make other two arrays how we do this. The size of arrays containing even and odd elements should be 10 and no garbage value should be printed

Recommended Answers

All 3 Replies

What are your first thoughts? What process would you use if you were doing it step by step?

Have you tried yet?

You have already asked this question. Just re-posting it will not get people to do your homework for you.

You just post the code which you have tried so that we can modify that code to give the correct output.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.