fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char d[12];
  5. int i;
  6.  
  7. scanf("%11s", d);
  8.  
  9. for (i = 0; d[i] != '\0'; i++) {
  10. printf("d[%d] = %c -> %d\n", i, d[i], d[i]);
  11. }
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5248KB
stdin
Kondo_Ryogo
stdout
d[0] = K -> 75
d[1] = o -> 111
d[2] = n -> 110
d[3] = d -> 100
d[4] = o -> 111
d[5] = _ -> 95
d[6] = R -> 82
d[7] = y -> 121
d[8] = o -> 111
d[9] = g -> 103
d[10] = o -> 111