FIND THE ANSWERS

HOW CAN I CONVERT A MATRIX INTO AN ARRAY ROW BY ROW IN C LANGUAAGE?? PLEEEEEEEEEASE HEEEELP ME !!!!!!!!!!!?

Answer this question

  • HOW CAN I CONVERT A MATRIX INTO AN ARRAY ROW BY ROW IN C LANGUAAGE?? PLEEEEEEEEEASE HEEEELP ME !!!!!!!!!!!?


Answers

Answer #1 | 23/07 2014 15:35
Turn off caps -_-
Positive: 66.666666666667 %
Answer #2 | 24/07 2014 22:08
In the following code, initm() breaks up a matrix, one row at a time, and passes a row to initr() for initialization. So this is one way of achieving your desire. void initr( int *r, int n ) {     int i;     for ( i= 0; i < n; ++i )         r[i]= 0; } void initm( int (*m)[10], int n ) {     int i;     for ( i= 0; i < n; ++i )         initr( m[i], 10 ); } int main( void ) {     int arr[20][10];     initm( arr, 20 );     return 0; }
Positive: 66.666666666667 %
Answer #3 | 23/07 2014 14:47
please read this http://www.tutorialspoint.com/cprogramming/c_multi_dimensional_arrays.htm
Positive: 33.333333333333 %

Possible answer