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 charできるのに、なぜ a を achar*として受け入れることができないのconst char *&ですか? 私がやりたいことは、ポインタが指すデータを変更するつもりはないポインタへの参照を持つことですが、ポインタが指す場所を変更することです。
char
const char
char*
const char *&