1、不帶方括號的數組名是一個指針,指向數組第一個元素
2、數組中,data 和 &data[0] ,等價
3、*(data+2) = data[2]
4、子函數傳遞數組時:子函數爲 int largest(int *num_array,int length),其中 int *num_array 等價於 int num_array[]
1、不帶方括號的數組名是一個指針,指向數組第一個元素
2、數組中,data 和 &data[0] ,等價
3、*(data+2) = data[2]
4、子函數傳遞數組時:子函數爲 int largest(int *num_array,int length),其中 int *num_array 等價於 int num_array[]
文件名稱:copy_system.c#include <unistd.h>#include <sys/stat.h>#include <fcntl.h