Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

printf and %f ????

Hello,

i have a very crazy problem.

See the following sourcecode:

----------------------------------------# include "system.h"

int main (void)

{

float c = -45.77;

printf("test");

printf("Answer = %f", c);

return 0;

}

-------------------------------------------

The Compiler-Output brakes after the first printf instruction.

Everytime when i use %f to print a float, the program stops his execution.

Why?

Please help me.

THANX.

PS: i don´t use "small C" - library
No RepliesBe the first to reply