📜  char数组到int - C编程语言代码示例

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

代码示例1
char myarray[5] = {'-', '1', '2', '3', '\0'};
int i;
sscanf(myarray, "%d", &i);