#include <stdio.h>
int main(void) {
double x = 5.1;
x = x - 5;
int y = x/0.1;
printf("%d\n", y);
}
Why does y = 0 instead of the expected value of 1?
#include <stdio.h>
int main(void) {
double x = 5.1;
x = x - 5;
int y = x/0.1;
printf("%d\n", y);
}
Why does y = 0 instead of the expected value of 1?