Why can't we assign an array to an array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why can't we assign an array to an array?

Array assignment is not possible in c++, why is that?

9th Apr 2022, 4:14 PM
Lidiya Fissha
Lidiya Fissha - avatar
2 Answers
+ 2
Can you share your code's link, not sure what you mean by array assignment here ... https://www.sololearn.com/post/75089/?ref=app
9th Apr 2022, 4:53 PM
Ipang
- 1
You mean to assign an array inside an array? If yes then you can do that int two_d_array[][] = {{1,2,3}, {9,8,7}};
11th Apr 2022, 12:52 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar