Question 4
Answer saved
Marked out of 1.00
What wil be the output of the following program?
1
#include<stdio.h>
2
#include<string.h>
3
#include<ctype.h>
4
int main()
5
6
7
8
日{
char str[]="xyzt"; int i;
int len=strlen(str);for(i=0;i<len;i++)
9日
{
10
if(i%2==1)str[i]=toupper(str[i]);
11
}
12
13
printf("%s", str);
14
return 0;
}
15
O a.
xyzt
b. xYzT
Oc. XyZt
O d. XYZT
Clear my choice