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.
次の 2 つの定義の違いは何ですか。
char* str = "example";
と
const char* str = "example";
私が学んだことから、最初の定義ではstr、定数リテラルのコンパイラによって返されたアドレスの場所にバインドされています。2 番目の定義の処理も同様です。
str