当前位置:网站首页>Function related matters

Function related matters

2022-06-12 14:52:00 Leg hair Ger

C Function related

cplusplus.com - The C++ Resources Network

The actual parameter ( Actual parameters ):

Formal parameters ( Shape parameter ):

Function call :

Value transfer call : The formal and actual parameters of a function occupy different memory blocks , Modification of a parameter does not affect the argument .

Address call : Address call is a way to call a function by passing the memory address of the created variable outside the function to the function parameter . This parameter transfer method can establish a real relationship between the function and the variables outside the function , That is, you can directly operate inside the function As a variable outside the function

Be careful If the passed array is a parameter , The essence is to pass the first address of the array

  Function declaration , Definition

 

 

 

原网站

版权声明
本文为[Leg hair Ger]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206121442257201.html