C array declaration and assignment?

前端 未结 7 1475
囚心锁ツ
囚心锁ツ 2020-11-29 07:59

I\'ve asked a similar question on structs here but I\'m trying to figure out how C handles things like assigning variables and why it isn\'t allowed to assign them to eachot

相关标签:
7条回答
  • 2020-11-29 08:29
    int x [sz];
    int *y = x;
    

    This compiles and y will be the same as x.

    0 讨论(0)
提交回复
热议问题