Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Multiple Choices
Size: 10
Time Left:45:59
✔D
(Choose 1 answer)
#include<stdio.h>
What will be the output of the following program?
#include<string.h>
#include<ctype.h>
void main()
{
char str = "abcd";
int len = strlen(str);
for(int i=0;i < len; i++)
{
if(i%2 == 0)
str[i] = toupper(str[i]);
} printf("%s", str);
return 0;
}
A. abcd
B. ABCD
C. AbCd
D. aBcD