PRF192_-_S6_-_SU_2023_-_FE_452.webp
A

PRF192_-_S6_-_SU_2023_-_FE_452.webp

(Choose 1 answer)
What is the output when the sample code below is executed?
void *foo(char str[], int k) {
str[k] = '\0';
} int main() {
char str[] = "abcde";
foo(str, 3);
printf("%s",str);
return 0;
}
A. a
B. ab
C. abc
D. abcd
E. abcde
Exit 44

Thông tin

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

Image metadata

Filename
PRF192_-_S6_-_SU_2023_-_FE_452.webp
File size
46 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom