Problem Statement - 01D
Find and write the output of the following C++ program code:
Note: Assume all required header files are already included in the program.
typedef char TEXT[80]; void JumbleUp(TEXT T) { int L=strlen(T); for (int C=0;C<L1;C+=2) { char CT=T[C]; T[C]=T[C+1] T[C+1]=CT; } for (C=1;C<L;C+=2) if (T[C]>='M' && T[C]<='U') T[C]=’@’; } void main() { TEXT Str="HARMONIOUS"; JumbleUp(Str); cout<<Str<<endl; }
Solution
CSKC| Created: 31-Dec-2018 | Updated: 22-Feb-2019|CBSE12A-2016