Share
Explore BrainMass

Miracle C compiler will not compile the line of code (float x = 1/a;)

In the following lines of code, the Miracle C compiler will not compile the line of code in the center (float x = 1/a;). Why does this occur? How can it be corrected?

int a = 3;

float x = 1/a;

printf("The value in x is: %f",x);

$2.19