I have this little program. It outputs the binary conversion to the console (aka garbled output). Is there a way to fwrite() numerical types to the output?
Code:#include int main() { float f = 0.1; fwrite(&f, sizeof f, 1, stdout); return 0; }
I have this little program. It outputs the binary conversion to the console (aka garbled output). Is there a way to fwrite() numerical types to the output?
Code:#include int main() { float f = 0.1; fwrite(&f, sizeof f, 1, stdout); return 0; }