Q&A CBSE12A-2019-A01D #6953
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;
}
