Question: Write a C program that defines and initialize an integer and a floating point number and defines two pointers to point to those variables respectively.
Write a C program that defines and initialize an integer and a floating point number and defines two pointers to point to those variables respectively. The program then uses the pointers only to display the contents of the variables. Also, the program should use the pointers to increase the value of the integer by 10 and multiply the floating point number by 3 and display the changed values of those variables on the screen. In the last step the program may use either the variable names or their pointers.
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
