int c = getchar()?

后端 未结 6 1926
予麋鹿
予麋鹿 2020-11-27 15:20

ok so im reading this book: The C Programming Language - By Kernighan and Ritchie (second Edition) and one of the examples im having trouble understanding how things are wor

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 15:35

    Every character (including numbers) entered on the command line is read as a character and every character has an integer value based on its ASCII code http://www.asciitable.com/.

提交回复
热议问题