KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to memcpy the two dimensional array in C: I have a two dimensional array: int a[100][100]; int c[10][10]; I want to use memcpy to copy the all the values in array c to array a, how to do this using memcpy? int i; for(i = 0; i<10; i++) { memcpy(&a[i][10], c, sizeof(c)); } is this correct?
Tags (comma-separated)
Save Edits
Cancel