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 modification and compare the results with those given in Example 10.1. Be sure to modify the printf statements accordingly. C code #include <stdiab? main() int ul, u2; int v = 3; int py: Rx points to v*/ ul – 2* (v + 5); /* ordinary expression / BY = &v; u2 -2 (Rx+5); /* equivalent expression */ printf(“nul=%d u2-%d”, ul, u2); Program after modification (a) Output after modification (a) Program after modification (b) Output after modification (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 modification and compare the results with those given in Example 10.1. Be sure to modify the printf statements accordingly. C code #include
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…