解释代码意思,详细一点谢谢int alloced_file_name_in = 32; char** file_names_in = (char**)malloc(sizeof(char*)*alloced_file_name_in); char* file_name_out = 0;
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 23:38:37
解释代码意思,详细一点谢谢int alloced_file_name_in = 32; char** file_names_in = (char**)malloc(sizeof(char*)*alloced_file_name_in); char* file_name_out = 0;
解释代码意思,详细一点谢谢
int alloced_file_name_in = 32;
char** file_names_in = (char**)malloc(sizeof(char*)*alloced_file_name_in);
char* file_name_out = 0;
解释代码意思,详细一点谢谢int alloced_file_name_in = 32; char** file_names_in = (char**)malloc(sizeof(char*)*alloced_file_name_in); char* file_name_out = 0;
int alloced_file_name_in = 32;定义一个int型的变量alloced_file_name_in 将其值赋为32
char** file_names_in = (char**)malloc(sizeof(char*)*alloced_file_name_in);申请32个指针大小的内存,sizeof(char*)就可以认为是指针的大小,在32位机上为4个字节,再将申请的内存赋值给一个二级指针file_names_in
char* file_name_out = 0;定义一个char型的指针file_name_out,将指针初始化为0