SyntaxFix
Write A Post
Hire A Developer
Questions
I don't know what you mean by "data dont get lost". Here's how you pass a normal 2D array to a function:
void myfunc(int arr[M][N]) { // M is optional, but N is required .. } int main() { int somearr[M][N]; ... myfunc(somearr); ... }