0
How to swap odd and even components of an array using pointers in c language.
If there will be two odd numbers or two even numbers on consecutive indexes then they should not be swapped. I need a c code please I have been working on this for hours.
5 Antworten
+ 1
...but asking for your code enables people to answer using what you've already tried, which is really important for giving an answer that's usable.
Without this people have to guess what you've done, which is like doing your homework for you (and that's not the goal here).
0
I have done the same thing but don't know why the array is not being printed properly
0
Can I get a c code plzz
0
I just want to swap odd and even components of an array using pointers that's it.
0
I understand you ok! But I don't know how to send my code here