Q41.webp
M

Q41.webp

Question: 41
(Choose 1 answer)
Which of the following statements correctly allocates memory for a dynamic array of 10 integers in C?
A. int a = (int)malloc(10 * sizeof(int));
B. int a[10] malloc(10 * sizeof(int));
C. int a = (int)calloc(sizeof(int), 10);
D. int a = (int)malloc(10);

Thông tin

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

Share this media

Back
Bên trên Bottom