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.
C の配列と構造体は、連続したメモリにデータを格納します。次に、C が "=" を使用した配列の直接コピーを許可していないのはなぜですか。例:
int a[3] = {1,2,3}; int b[3]; b = a; // why is this not allowed. struct book b1, b2; b1.page = 100; b1.price = 10.0; b2 = b1; // Why is this allowed