While passing an array through a function in C++/C, why address of array is used in actual parameter whereas the array in formal parameter?

前端 未结 0 1355
孤独总比滥情好
孤独总比滥情好 2021-02-03 12:10
#include 
using namespace std;
int func(int ar[5]){
    //the code is written here with returning whatever the requirement is
}
int main(){
    int ar[5]         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题