no... n is not the number of elements...
if the matrix is 700X700, n is 700
(it's always a square matrix).
as i mentioned, it works well for smaller matrices.
Type: Posts; User: ginz
no... n is not the number of elements...
if the matrix is 700X700, n is 700
(it's always a square matrix).
as i mentioned, it works well for smaller matrices.
you don't need to use strlen.
you can use the pointer to string your function receives, and increment it in a while loop with the stopping condition *string==NULL (like: while(*string)).
well, i thought it might be a problem one knows exists with c, like if someone says he gets a negative integer when it has to be positive - it's probably a number that exceeds an integer's limits.
...
i wrote a program that, as a part of its execution, needs to print out to a file an integers' matrix whose elements can be 0 or 1, with tabs between elements of same row, and an enter after each row....