fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char* str = "hogehoge";
  5. char buf[256];
  6.  
  7. printf("%s\n", str);
  8. printf("逆順の文字列を入力してください。\n");
  9. scanf("%s", buf);
  10. printf("%s\n", buf);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.02s 2728KB
stdin
egohegoh
stdout
hogehoge
逆順の文字列を入力してください。
egohegoh