Question: C programming Consider the program below: void decompose(double x, int int part, double frac_part) int_part = (int) x; frac_part = x - int_part; ] int
C programming

Consider the program below: void decompose(double x, int int part, double frac_part) int_part = (int) x; frac_part = x - int_part; ] int main() { double number = 8.5; double fractional part = 0; int integer part = 0; decompose(number, integer_part, fractional_part); printf("%d %.1f", integer_part, fractional part); return 0; } What will be the output when this program is run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
