fork(1) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void)
  5. {
  6. char a[2];
  7. int b = 10;
  8. sprintf(a, "%d", b);
  9. printf("%d\n", b); // 0
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
10