#include using namespace std; class Friend { int x; friend void display(Friend); }; void display(Friend f) { f.x=10; cout<<"the value of x is"<