PRF192_-_SP_2023_-_RE_-_s_1_121.webp
I

PRF192_-_SP_2023_-_RE_-_s_1_121.webp

Multiple Choices
Answer (Choose 1 answer)
What will be the output of the following program?#include <stdio.h>
int main(void)
{
int ref[] = {1, 2, 4);
int *ptr;
int index;
for (index = 0, ptr = ref; index < 3; index++, ptr++)
printf("%d %d ", ref[index], *ptr);
return 0;
}
A. 124124
B. 142241
C. 144221
D. 112244

Thông tin

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

Share this media

Back
Bên trên Bottom