Question: In C++, a) Declare the variable fptr to be a pointer to a float variable b) Assign the address of variable number1 to fptr. c)

In C++,

a) Declare the variable fptr to be a pointer to a float variable

b) Assign the address of variable number1 to fptr.

c) Print the value of the object pointed to by fptr

d) Assign the value of the object pointed to by fptr to variable number2

e) Print the address of number1

f) Print the address stored in fptr.

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!