SyntaxFix
Write A Post
Hire A Developer
Questions
You can easily write one yourself.
given:
int array[]={1,2};
you do:
int temp=array[0]; array[0]=array[1]; array[1]=temp;
And you're done. 3 lines of code.