CodePudding user response:
Int LEN=(sizeof (country_codes)/sizeof (country_codes [0]));CodePudding user response:
Look at the macro definition to knowCodePudding user response:
The size of the array, the array sizeCodePudding user response:
This definition is to determine the number of elements in the array ofDevide the code before array is to calculate the overall occupy memory size
Devide is followed by the size of the array elements each occupy the content
CodePudding user response:
Sizeof (country_codes) : the entire array sizeSizeof (country_codes [0])) : the size of the array element
Macro definition: textual substitution
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html