fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char d[15];
  5. int i;
  6.  
  7. for (i = 0; i < 15; i++) {
  8. d[i] = 'g';
  9. }
  10. d[i] = '\0';
  11.  
  12. printf("");
  13. scanf("%15s", d);
  14.  
  15. for (i = 0; i < 15; i++) {
  16. printf("d[%d] = %c -> %d\n", i, d[i], d[i]);
  17. }
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5264KB
stdin
Yoshino_Daiki
stdout
d[0] = Y -> 89
d[1] = o -> 111
d[2] = s -> 115
d[3] = h -> 104
d[4] = i -> 105
d[5] = n -> 110
d[6] = o -> 111
d[7] = _ -> 95
d[8] = D -> 68
d[9] = a -> 97
d[10] = i -> 105
d[11] = k -> 107
d[12] = i -> 105
d[13] =  -> 0
d[14] = g -> 103