when C compiler throws an error:
scanf : floating point formats not linked Abnormal program termination
Just add below function in your C code.
It will force the compiler to scan floating values.
Errors will occur only when we scan more than one float values using loop. For single floating scanning it will not throws an error.
static void dummy() // A dummy function { float a, *b; // Declares two variables b = &a; // Forces linkage of floating variables a = *b; // Suppress warning message about a and b }
No comments:
Post a Comment