Question: For the following code show where the coercion is taking. Point out the exact statement where the coercion takes place and explain what kind of
For the following code show where the coercion is taking. Point out the exact statement where the coercion takes place and explain what kind of coercion is taking place. Assume that the function integer converts a floating-point number to an integer, and a double floating point to a double integer.
program main
{
int i, j, k, l float m, n, o, p; double integer ii, jj, kk, ll; double float mm, nn, oo, pp
{ i = 3; m = 4.3; k = 4; o = -13.7; mm = i + k; nn = m + o; kk = integer(nn) + mm; p = m + i; pp = p + k; oo = kk + o;
jj = integer(m) + i; l = i + k; nn = jj + nn; i = 2 * k;}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
