A const char *
array in C is often formatted like this:
(C语言中的const char *
数组通常采用以下格式:)
const char *my_array[] = {
"array1",
"array2",
"array3"
};
Senior C programmers often pass an all-caps variable to the array like this:
(高级C程序员经常将全大写变量传递给数组,如下所示:)
const char *their_array[SOME_VARIABLE] = {
"ARRAY_1",
"ARRAY_2",
"ARRAY_3"
};
What is the all-caps variable?
(什么是全大写变量?)
What are the advantages or disadvantages of using it? (使用它的优缺点是什么?)
Thank you
(谢谢)
ask by tilikoom translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…