C言語なら俺に聞け(入門編)Part 64
■ このスレッドは過去ログ倉庫に格納されています
0718デフォルトの名無しさん
2010/05/25(火) 23:56:34>702
ISO/IEC 9899:1999 (E)
6.7.8 Initialization
Semantics
32 EXAMPLE 8 The declaration
char s[] = "abc", t[3] = "abc";
defines ``plain'' char array objects s and t whose elements are initialized with character string literals.
This declaration is identical to
char s[] = { 'a', 'b', 'c', '\0' },
t[] = { 'a', 'b', 'c' };
細かいことだけど、誰も規格書を読んでないという悲しさ
以後、精進せよ
■ このスレッドは過去ログ倉庫に格納されています