working of this code ,also explain about it explaination nd How it print WELCOME ...

arpk

Estimable
May 31, 2014
1
0
4,510
0
#include<string.h>
void main()
{
char*msg="WELCOME";
for(int i=strlen(msg)-1;i>=0;i--)
if(islower(msg))
{
msg=toupper(msg);
cout<<msg;
}
else
if(isupper(msg))
if(i%2!=0)
msg=tolower(msg[i-1]);
else
msg[i--];
cout<<msg<<endl;
getch();
}
 
Thread starter Similar threads Forum Replies Date
lorder Apps General Discussion 1
Neon The (Anthro) Umbreon Apps General Discussion 1
D Apps General Discussion 1
R Apps General Discussion 2
L Apps General Discussion 1
S Apps General Discussion 1
G Apps General Discussion 0
T Apps General Discussion 3
N Apps General Discussion 4
T Apps General Discussion 2
I Apps General Discussion 1
G Apps General Discussion 1
D Apps General Discussion 1
rebjane20 Apps General Discussion 2
C Apps General Discussion 2
A Apps General Discussion 3
O Apps General Discussion 1
B Apps General Discussion 1
Requesterofhelp Apps General Discussion 1
C Apps General Discussion 4

ASK THE COMMUNITY