Question 10
Answer saved
Marked out of 1.00
What will be the output of the following C code?
1 #include<stdio.h>
#include<string.h>
2 3 #include<conio.h>
4
int main()
5{
6
7
8
char str[50]; int i;
strcpy(str, "KLM");
for(i=0;i<strlen(str);i++)
9
str[i]=str[i]-1;
10
printf("%s", str);
11
getch();
12
return 0;
13 }
O a. LMN
Ob. Conpile error
c. JKL
O d. KLM
Clear my choice