Task #3 Modify the program shown below as follows: a) Use floating-point data rather than integer data. Assign an initial value of 0.3 to v. b) Use double-precision data rather than integer data. Assign an initial value of 0.3 x 1045 to v. c) Use character data rather than integer data. Assign an initial value of ‘C’ to v. Execute each mod ification and compare the results with those given in Example 10.1. Be sure to modify the printf statements accordingly. C code #include <stdio.b> main int ul, u2; int v 3; RY points to v / int “py ul 2 (v+5); / ordinary expression PY.-&v; u2-2 “px+ 5): printf”nu1-%d equivalent expression “/ u2-%d”, ul, u2); Program after mod ification (a) Output after modification (a) Output after mod ification (b) Program after mod ification (b) Program after modification (c) Output after modification (c) Show transcribed image text Task #3 Modify the program shown below as follows: a) Use floating-point data rather than integer data. Assign an initial value of 0.3 to v. b) Use double-precision data rather than integer data. Assign an initial value of 0.3 x 1045 to v. c) Use character data rather than integer data. Assign an initial value of ‘C’ to v. Execute each mod ification and compare the results with those given in Example 10.1. Be sure to modify the printf statements accordingly. C code #include main int ul, u2; int v 3; RY points to v / int “py ul 2 (v+5); / ordinary expression PY.-&v; u2-2 “px+ 5): printf”nu1-%d equivalent expression “/ u2-%d”, ul, u2);
Program after mod ification (a) Output after modification (a) Output after mod ification (b) Program after mod ification (b)
Program after modification (c) Output after modification (c)
Expert Answer
Answer to Task #3 Modify the program shown below as follows: a) Use floating-point data rather than integer data. Assign an initia…