N
nitinm
hi
I want to make a program whose requirement are as following:
1) it has to create an NxN matrix after reading input (i.e. N) from a
file in the main() itself. [so runtime array initialization]
2) it has to send the array as a parameter to a function. [for
recursive calls]
condition 1 is not a problem when i use gmalloc for array
initialization. but for condition 2, i require that the function that
is called by the main(), it has to specify one of the
dimensions(because it is a multidimensional array) like function(int
array[][N])
any ideas?
I want to make a program whose requirement are as following:
1) it has to create an NxN matrix after reading input (i.e. N) from a
file in the main() itself. [so runtime array initialization]
2) it has to send the array as a parameter to a function. [for
recursive calls]
condition 1 is not a problem when i use gmalloc for array
initialization. but for condition 2, i require that the function that
is called by the main(), it has to specify one of the
dimensions(because it is a multidimensional array) like function(int
array[][N])
any ideas?