Write a C function show() that has three arguments, the first is a pointer to a two dimensional dynamic array, the second is an integer that describes the number of its rows, the third argument is an integer that describe its number of columns.
Function show() displays the content of the dynamic array on the screen as a 2-dimensional matrix, rows being rows, columns being columns.
Write a C function?
This is really basic
void show(char **array, int rows, int cols)
{
int i, j;
for (j = 0; j %26lt; rows; ++j)
for (i = 0; i %26lt; cols; ++i)
putchar(array[i][j]);
}
Its done
Reply:What school are you guys from?
Im tired of answering simple array questions. The fundamentals to alll of these questions are in the answers that I have provided. please read those and ask a question about something that you may not understand.
Reply:why won't u do it??
the logic is so simple..
it's all in your face and you can't even do that??
i think this question should have not been approve by
yahoo to be posted, imho.. :|
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment