Q:

Explain the following expression

0

Explain the following expression:

double slope = static_cast<double>(j/i);

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The expression first did integral division `j / i`, then converted the result to `double` and assigned it to `slope`. The result is the same as `double slope = j / i;`.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now