Home > Back-end >  The understanding of function arguments
The understanding of function arguments

Time:09-17


Size_out=? , size_in=?
Why is that?

CodePudding user response:

Copy this code in?
Start where copy code read on read ten lines
Are you reading a book without words?

CodePudding user response:

Parameter is a pointer is not an array, although the definition is an array, but the compiler as a pointer, because the pass test_arr the arr is arguments, is actually pass the address of the arr to test_arr, so test_arr is a pointer, can also be considered from the aspects believe that education is a pointer,

CodePudding user response:

Menstrual problems sizeof (array)=the number of bytes occupied an array

The length of the sizeof (pointer)=pointer

The incoming function of an array, the parameter is a pointer

CodePudding user response:

Results no problem, array as a parameter can't preach length, is a pointer, so the length is a parameter definition
  • Related