fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4. char buff[] = "test";
  5. scanf("%s", &buff[0]);
  6. for(int i = 0; i < 4; ++i){
  7. printf("%c(%d)\n", buff[i], buff[i]);
  8. }
  9. }
  10.  
Success #stdin #stdout 0s 2172KB
stdin
T
stdout
T(84)
(0)
s(115)
t(116)