fork download
  1. #include <stdio.h>
  2.  
  3. char* ctos(char c)
  4. {
  5. char s[2];
  6. sprintf(s, "%c\0", c);
  7. return s;
  8. }
  9.  
  10. int main()
  11. {
  12. printf(ctos('c'));
  13. }
Runtime error #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
c