Untitled

mail@pastecode.io avatar
unknown
python
a year ago
213 B
2
Indexable
Never
for (int* p = x; p < x + 3; p++) {
        for (int* q = x; q < p; q++) {
            if (*p>*q) {
                tmp = *q;
                *q = *p;
                *p = tmp;
            }
        }
    }