daily pastebin goal
88%
SHARE
TWEET

ConwaySort

a guest Feb 22nd, 2017 22,544 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. /**
  4.  * ConwaySort:
  5.  * sorts an array by ignoring it and then
  6.  * printing out a new, sorted array with its
  7.  * own "Alternative Values."
  8.  *
  9.  * If the new array does not appear sorted,
  10.  * you have been manipulated by MSM
  11.  */
  12.  
  13. // The array to be sorted
  14. int arr[] = {6, 8, 3, 9, 5, 4, 1, 7, 0, 2};
  15.  
  16. int main(int argc, char **argv) {
  17.     printf ("15, 16, 17, 18, 19, 20\n");
  18.     return 0;
  19. }
RAW Paste Data
Top