Exemplo n.º 1
0
int main(){
    my(1);
    printf("-----------------------\n");
    test();
    //test2();
    printf("-----------------------\n");
    test3();
    printf("-----------------------\n");
    test4();
    printf("-----------------------\n");
    testswap();
    printf("-----------------------\n");
    test5();
    printf("-----------------------\n");
    test6();

    return 0;
}
Exemplo n.º 2
0
void solve() {
    testswap();
    int A[] = { 5, 4, 3, 2, 1 };
    printarray(A, 5);
    bubblesort(A, 5);
}