Switch to full style
For C/C++ coders discussions and solutions
Post a reply

OUTPUT??

Mon Dec 10, 2012 9:41 am

Can u pls tell me the output of d following code with explanation?

Code:
#include<iostream.h>
#include<ctype.h>
void main()
{
char line[]="Good@LOGIC!";
for(
int i=0;line[i]!='\0';i++)
{
if(!
isalpha(line[i]))
line[i]='$';
else if(islower(line[i]))
line[i]=line[i]+1;
else
line[i]=line[i+1];
}
cout<<line;
}
 




Post a reply
  Related Posts  to : OUTPUT??
 what is the output of this program and how it be?     -  
 Input-Output Operations     -  
 Use for loop to output HTML table     -  
 echo command to output HTML     -  
 output associate array by print_r     -