📜  converte char int - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:12.283000             🧑  作者: Mango

代码示例1
char c='5';int i=c-'0';          // c='5'=53   '0'=48 nella tabella ascii   53-48=5