InterviewSolution
Saved Bookmarks
| 1. |
Find the output of the following program:#include<iostream.h>#include<ctype.h>void Encode<char Info[],int N);void main() {char Memo[]="Justnow";Encode(Memo,2);cout<<Memo<<end1;}void Encode<char Info[],int N){for(int I=0;Info[I]!='\0';I++)if(I%2==0)Info[I]=Info[I]-N;else if(islower(Info[I]))Info[I]=toupper(Info[I]);elseInfo[I]=Info[I]+N; |
|
Answer» Output: HUqT10u |
|