Computer Science, asked by maruf758, 9 months ago

Analyze the given program and answer the following
Write the output of the program segment

Answers

Answered by owen4G2006
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