Cannot assign an array to another

后端 未结 4 639
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 02:52

I tried through different ways to copy an array pointer to another one, without any success. Here are my attempts, with the associated error message.

typedef         


        
4条回答
  •  再見小時候
    2020-12-07 03:32

    You cannot assign one array to another using the assignment operator, e.g. a = b, because an array doesn't know the size of itself.

    This is the reason why we cannot assign one array to another using the assignment operator.

提交回复
热议问题