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
Physics,
4 months ago
English,
4 months ago
English,
4 months ago
Social Sciences,
9 months ago
English,
1 year ago