Write the output of the following program.
#include< iostream >
using namespace std;
class T
{
public:
int x;
void foot()
{
x = 6; // same as this->x = 6;
this ->x = 5; // explicit use of this ->
cout<x;
}
void foo(int x) // parameter x shadows the member
with the same name
{
this->x = x; // unqualified x refers to the
parameter.'this->' required for disambiguation
cout<< endl << x <<" "<x;
}};
int main()
{
T t1,t2;
t1.foot();
t2.food();
}