Hi
I have a question when I call a function and creating a pointer to a 2D array in the main function. "Main" call a function to input data in a array witch is declared in the main function.
Witch works perfectly well, however I would like only to send the first row of my 2D array, or only the second row, only the third row etc. A.t.m. I send the entire array, and don´t know how to just send one row at a time to the function, of the array. In the input function i input data from the keyboard using fgets.
Would really appreciate an answer
Thanks
I have a question when I call a function and creating a pointer to a 2D array in the main function. "Main" call a function to input data in a array witch is declared in the main function.
Witch works perfectly well, however I would like only to send the first row of my 2D array, or only the second row, only the third row etc. A.t.m. I send the entire array, and don´t know how to just send one row at a time to the function, of the array. In the input function i input data from the keyboard using fgets.
Would really appreciate an answer
Thanks
Comment