This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
多维数组如何初始化 #40
Answered
by
wu-kan
TommyPlayer-c
asked this question in
Q&A
多维数组如何初始化
#40
-
int main(){
int a[4][2]={1,2,3,4,5,6,7,8};
int b[4][2]={{a[0][0],a[0][1]},{3,4},{5,6},{7,8}};
return 0;
} 函数体内定义了局部二维数组,看不懂clang生成的ir代码逻辑。是要使用 memcpy 来初始化吗,但这个指令我不太会使用,助教能不能给出具体的使用方法?或者是使用别的方法来初始化多维数组? |
Beta Was this translation helpful? Give feedback.
Answered by
wu-kan
May 16, 2022
Replies: 1 comment 4 replies
-
c语言中多维数组的本质是一维数组? |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
TommyPlayer-c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
c语言中多维数组的本质是一维数组?