Question:
Find and write the output of the following C++ program code:
Note: Assume all required header files are already included in the program.
void Alter(char *S1, char *S2)
{
char *T;
T=S1;
S1=S2;
S2=T;
cout<<S1<<"&"<<S2<<endl;
}
void main()
{
charX[]="First", Y[]="Second";
Alter(X,Y);
cout<<X<<"*"<<Y<<endl;
}
C. Sir| Created: 8-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019
