fork(50) download
  1. #include <algorithm>
  2. #include <iostream>
  3.  
  4. int main() {
  5.  
  6. char array[] = "zabgqkzg";
  7.  
  8. std::sort(array, array+sizeof(array));
  9.  
  10. for (int i = 0; i < sizeof(array); i++) {
  11. std::cout << array[i] << "\n";
  12. }
  13. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout

a
b
g
g
k
q
z
z