1.

Find and write the output of the following C++ program code:typedef char STRING[80];void MIXNOW(STRING S){int Size=strlen(S);for(int I=0;I<Size;I+=2){char WS=S[I];S[I]=S[I+1];S[I+1]=WS;}for (I=1;I<Size;I+=2)if (S[I]>=’M’ && S[I]<=’U’)S[I]=’@’;}void main(){STRING Word=”CBSEEXAM2019”;MIXNOW(Word);cout<<Word<<endl;}

Answer»

The output is:

[email protected]



Discussion

No Comment Found

Related InterviewSolutions