InterviewSolution
Saved Bookmarks
| 1. |
Find the output of the following program:#include<iostream.h>#include<ctype.h>void main(){char Line[]="[email protected]";for(int I=0;Line(I)!='\0';I++){if(!isalpha(Line[I]))Line[I]='$';else if(islower(Line[I]))Line[I]=Line[I]+1;elseLine(I)=Line[I+1];}cout<<Line;} |
|
Answer» Output: Oppe$0GIC |
|