Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
char const*const variablename = " ";
どういう意味ですか?
ポインタ宣言と同じですか?
誰か説明してください。
前もって感謝します!
これはC 文字列constへのポインタです。constこれは、文字列の内容もポインタ自体も変更できないことを意味します。
const
constは、左側に何もない場合を除いて、左側を 保護します。その場合にのみ、右側を保護します。
これをあなたの例に当てはめると、それはへのconstポインタconst Stringです。
String