PRF192_-_REB5_-_FA_2023_1327.webp
Naoya92

PRF192_-_REB5_-_FA_2023_1327.webp

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

Thông tin

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

Image metadata

Filename
PRF192_-_REB5_-_FA_2023_1327.webp
File size
46.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom