Have the source code. Content of the function func is unknown:
#include <stdio.h>
#include <math.h>
float func (void)
{
// Black box
}
int main (void)
{
float f1, f2;
int r1, r2;
f1 = 5.0f;
f2 = func();
r1 = (f1 > f2);
r2 = (f1 <= f2);
printf ("r1=%d r2=%d\n", r1, r2);
return 0;
}
Need to write the contents of the function func, to print out the message:
r1=0 r2=0
Answer:
return pow(-5.0, 0.5);
or
return 0.0/0.0;
Can't understand, why so?