次のコードがあります。
const char* names = {"apples", "oranges", "grapes"};
とはどのようなデータ型&name[0]
ですか? GCCは文句を言っています。GCCがこれについて不平を言っているので、これは const char** ではありません:
const char** address_of_first_name = &name[0];
"note: expected 'const char ** ' but argument is of type 'char **' "
それはconstchar * const
ですか?頭痛が進行中...
とはどのようなデータ型&name[0]
ですか? このコンパイラ エラーを間違って修正したくありません。