Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Score: a ) Get two double inputs from the user. Then create two pointer variables which store the memory address of the previous two pointers.

Score:
a) Get two double inputs from the user. Then create two pointer variables which store the
memory address of the previous two pointers. Use these pointers to multiply the double
inputs by a factor of 10. Print the new value of the input variables as well as their memory
location and the values stored in the pointer variables.
Test Data:
Inputs from user and pointer variables:
var1=1.5,var2=2.5
pt1,pt2
Output using pointers:
var1=15, var =25
var1 has address { address }
var2 has address {address}
pt1 has value { value }
pt2 has value { value }
Write in C and show code please
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions