PRF192_-_SU_2024_-_Block_5_-_RE_2704.webp
Quốc Hùng2

PRF192_-_SU_2024_-_Block_5_-_RE_2704.webp

Kizspy | Question: 38
(Choose 1 answer)
int *ptr = malloc(sizeof(int));
To reallocate ptr to be an array of 5 elements, which of the following statements generates an error?
A. ptr = realloc(ptr, 5* sizeof(int));
B. realloc(ptr, 5* sizeof(int));
C. ptr += malloc(5* sizeof(int));
D. realloc(ptr, 20);
E. ptr = realloc(ptr, 20);

Thông tin

Category
PRF192
Thêm bởi
Quốc Hùng2
Ngày thêm
Lượt xem
2,379
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom