Total members 11895 |It is currently Mon Dec 30, 2024 6:22 pm 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     -  
 output associate array by print_r     -  
 Use for loop to output HTML table     -  
 echo command to output HTML     -  



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