fork(2) download
  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<stdlib.h>
  4.  
  5.  
  6. int porownywacz( const void * a, const void * b ) {
  7. return( *( char * ) a - *( char * ) b );
  8.  
  9. }
  10.  
  11. main() {
  12. int n, i, dlugosc;
  13. char wyraz[ 30 ];
  14.  
  15. scanf( "%s", wyraz );
  16. dlugosc = strlen( wyraz );
  17. qsort( wyraz, dlugosc, sizeof( char ), porownywacz );
  18. printf( "%s", wyraz );
  19.  
  20. return 0;
  21. }
Runtime error #stdin #stdout 0.02s 1724KB
stdin
Standard input is empty
stdout
Standard output is empty