C语言 int()的括号里还带有指针是什么意思int numberparse(const char *preprocessed,int **original);/* If preprocessed corresponds exactly to a preprocessed number * it allocates just enough memory to hold the original number as an ar
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 13:30:07
![C语言 int()的括号里还带有指针是什么意思int numberparse(const char *preprocessed,int **original);/* If preprocessed corresponds exactly to a preprocessed number * it allocates just enough memory to hold the original number as an ar](/uploads/image/z/3623110-70-0.jpg?t=C%E8%AF%AD%E8%A8%80+int%EF%BC%88%EF%BC%89%E7%9A%84%E6%8B%AC%E5%8F%B7%E9%87%8C%E8%BF%98%E5%B8%A6%E6%9C%89%E6%8C%87%E9%92%88%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9Dint+numberparse%28const+char+%2Apreprocessed%2Cint+%2A%2Aoriginal%29%3B%2F%2A+If+preprocessed+corresponds+exactly+to+a+preprocessed+number+%2A+it+allocates+just+enough+memory+to+hold+the+original+number+as+an+ar)
C语言 int()的括号里还带有指针是什么意思int numberparse(const char *preprocessed,int **original);/* If preprocessed corresponds exactly to a preprocessed number * it allocates just enough memory to hold the original number as an ar
C语言 int()的括号里还带有指针是什么意思
int numberparse(const char *preprocessed,int **original);
/* If preprocessed corresponds exactly to a preprocessed number * it allocates just enough memory to hold the original number as an array of ints * undoes the preprocessing,stores it in the newly allocated memory pointed to * by *original,and returns the size of the array (in ints).* In all other cases,no memory is allocated and numberparse returns 0.*/
请问int后面的括号里的是什么意思.为什么是const char,还有双指针.
C语言 int()的括号里还带有指针是什么意思int numberparse(const char *preprocessed,int **original);/* If preprocessed corresponds exactly to a preprocessed number * it allocates just enough memory to hold the original number as an ar
就是调用函数是传入的参数,const char* 表示常量字符串,比如“hello world”,双指针表示指针的指针,可以用来在调用函数中开辟空间