The atoi (ASCII to integer) function in the C programming language is used to convert a string into a numerical representation.
int atoi(const char *str)
atoi is a function that get the first few number in a string until it sees a no numerical sign
1234--->1234
123*4--->123
1.234--->1
@1234--->0
没有评论:
发表评论