#include<iostream>
using namespace std;
int main()
{
char *p = "Internet";
cout << p << endl << q << endl;
q = "Intranet";
cout << p << endl << q << endl;
return 0;
}
Answer :
#include<iostream>
using namespace std;
int main()
{
char *p = "Internet";
char *q;
q = p;
cout << p << endl << q << endl;
q = "Intranet";
p = q;
cout << p << endl << q << endl;
return 0;
}