Hello all.
I have a function with paremeter double *col_zero that contains integger values. like 0, 1, 2. I am 100% sure of that.
I cant change the inputs and I have to use these values in a for loop for a count.
For now I am just printing my values in a file to be sure the output are as I want.
fp is a FILE pointer.
If I make :
fprintf(fp, " %d or %i \n ", row_zero[k],(int)row_zero[k] );
the output for the value 0 is
0 or 1074266112
0 or 1072693248
Could somebody explain me where the second value come from? Is my cast wrong?
If, so what is the most efficient way to deal with that??
Thank you
I have a function with paremeter double *col_zero that contains integger values. like 0, 1, 2. I am 100% sure of that.
I cant change the inputs and I have to use these values in a for loop for a count.
For now I am just printing my values in a file to be sure the output are as I want.
fp is a FILE pointer.
If I make :
fprintf(fp, " %d or %i \n ", row_zero[k],(int)row_zero[k] );
the output for the value 0 is
0 or 1074266112
0 or 1072693248
Could somebody explain me where the second value come from? Is my cast wrong?
If, so what is the most efficient way to deal with that??
Thank you
Comment