Update appNew update is available. Click here to update.
Topics

Pointers Output

Easy
0/10

Problem statement

What will be the output ?

float f = 10.5;
float p = 2.5;
float* ptr = &f;
(*ptr)++;
*ptr = p;
cout << *ptr << “ “ << f << “ “ << p;
Options: One or more answers may be correct