Total members 11893 |It is currently Tue Nov 05, 2024 2:44 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     -  
 Use for loop to output HTML table     -  
 echo command to output HTML     -  
 output associate array by print_r     -  



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