Total members 11890 |It is currently Fri Apr 19, 2024 4:18 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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;
}
 





Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 1 post ] 

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



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com