PRF192_-_PT02_-_SP_2024_1513.webp
maik205

PRF192_-_PT02_-_SP_2024_1513.webp

  • Media owner maik205
  • Ngày thêm
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

Thông tin

Category
PRF192
Thêm bởi
maik205
Ngày thêm
Lượt xem
633
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom