摘 要:C语言中,数组名表示数组的首地址,即为地址常量.本文结合参数的一些运算特点,分析研究C语言中数组名作为函数参数的问题.由于C语言牵涉的概念比较繁杂,规则也比较多,本文在研究数组名做函数参数时就提到了一些问题,比如参数匹配的一致性问题和参数传递方向问题.根据实例程序证明,数组参数从实质上就是指针参数,也就是两者可以说是等价的参数形式,参数之间依然是单向值方式的数据传递,而非双向的.38907 毕业论文关键词:数组名;数组参数;指针参数;数据传递
Study on the Array Name as the Parameter of Function
in C Language
Abstract: In the C language,the array name shows first address,and it is an address constant. Based on the characteristics of some operational of the parameters,the paper analysis and study the problem of the array name as parameters of a function. Since C language have the concept of more complicated and more rules,the paper studied the array name as the function parameter and mentioned some problems,such as the consistency problem of parameters and the direction of transmission problems.According to the instance of the program,the array parameter is a pointer parameter from the essence,and the two parameters can be said to be the same form,it is still a one-way data transfer between the parameter value,rather than two.
Key words: Array name; The array parameters; Pointer parameter; The data transfer
目 录