C++相談室 part114at TECHC++相談室 part114 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト109:デフォルトの名無しさん 14/09/19 23:34:24.19 jtajSA4X >>108は日本語が不自由な低脳 110:デフォルトの名無しさん 14/09/19 23:39:43.80 YE33y6IJ んで文字列リテラルってなんで左辺値なん!? 111:デフォルトの名無しさん 14/09/19 23:55:13.98 526ppMDR 左辺値だろ 112:デフォルトの名無しさん 14/09/19 23:58:40.60 Pjq/AHDS むしろ配列が値だと思う方が不思議 113:デフォルトの名無しさん 14/09/20 09:24:47.10 j948TmPI 3.14 object region of data storage in the execution environment, the contents of which can represent values 6.3.2.1 Lvalues, arrays, and function designators An lvalue is an expression with an object type or an incomplete type other than void; 6.4.5 String literals In translation phase 7, (中略) The multibyte character sequence is then used to initialize an array of static storage duration and length just sufficient to contain the sequence. 文字列リテラルは静的記憶域の配列 -> 記憶域のものはオブジェクト -> オブジェクト型のexpressionは左辺値 これであってる? 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch