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
Get step-by-step solutions from verified subject matter experts
