Answer:Consider the following code segment:
int main()
{
double f, *f_ptr=&f;
f=5.25;
f_ptr=4.5;
cout<< “Value of f is:” << “ “ << f;
return 0;
}
What is the output of the above code?
Options
a) Value of f is: 5.25
b) Value of f is: <hexadecimal address>
c) Value of f is: 4.5
d) Compiler error
Answer : d) Compiler error