컴퓨터/C

C atoi()

sayyesdoit 2022. 11. 6. 06:32

I. syntax

#include <stdlib.h>
int atoi(const char *string);

II. return

입력 문자를 숫자로 해석하여 생성되는 int 값을 리턴. 실패시 0

III. parameters

const char *string

변환할 문자열