Analyze the given program and answer the following
Write the output of the program segment
Answers
Answered by
0
Answer:Write the output of the follwing program segment
char *NAME="CoMpuTeR";
for(int x=0;x<strlen(NAME);x++)
if(islower(NAME[x]))
NAME[x]=toupper(NAME[x]);
else
if(isupper(NAME[x]))
if(x%2==0)
NAME[x]=tolower(NAME[x]));
else
NAME[X]=NAME[x-1];
puts(NAME);
Explanation:
Similar questions
Math,
4 months ago
English,
4 months ago
Science,
4 months ago
Social Sciences,
8 months ago
English,
11 months ago