source code

#include <stdio.h>

int main()
{
    char *test = "ABC\x41\n";
    printf("string : %s", test);

    return 0;
}

output

$ ABCA

source code 中的 "\x41",
代表 ascii 碼 0x41,也就是 "A"
也可寫 控制碼
\x1,也就是 SOH

相关文章:

  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-06-19
  • 2022-01-18
  • 2021-10-21
  • 2021-07-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2021-08-03
  • 2022-01-18
  • 2021-07-08
  • 2022-12-23
  • 2023-01-24
相关资源
相似解决方案