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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!