Q:

Assuming i is an int and d is a double write the expression i *= d so that it does integral, rather than floating-point, multiplication

0

Assuming i is an int and d is a double write the expression i *= d so that it does integral, rather than floating-point, multiplication.

All Answers

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

int main() {
  int i = 0;
  double d = 0;
  i *= static_cast<int>(d);
  return 0;
}

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