close

one dimensional array 不需指定 array size

ex:

char json_str[10];

void parse_string(char *json_str)

 

multiple dimensional array 需要指定 array size

ex:

char json_str[10][20];

void parse_string(char json_str[10][20])

 

https://www.geeksforgeeks.org/pass-2d-array-parameter-c/

http://www.eskimo.com/~scs/cclass/int/sx9a.html

arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()