00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "syscall.h"
00011
00012 int A[1024];
00013
00014 int
00015 main()
00016 {
00017 int i, j, tmp;
00018
00019
00020 for (i = 0; i < 1024; i++)
00021 A[i] = 1024 - i;
00022
00023
00024 for (i = 0; i < 1023; i++)
00025 for (j = i; j < (1023 - i); j++)
00026 if (A[j] > A[j + 1]) {
00027 tmp = A[j];
00028 A[j] = A[j + 1];
00029 A[j + 1] = tmp;
00030 }
00031 Exit(A[0]);
00032 }
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees