PRF192_-_S4_-_SU_2023_-_FE_438.webp
D

PRF192_-_S4_-_SU_2023_-_FE_438.webp

Answer (Choose 1 answer)
What is the output when the sample code below is executed?
void inc(int* a) {
for(int i = 0;i<5;i++)(*a)++;
}
int main() {
int x = 1;
inc(&x);
printf("%d", x);
}
A. 1
B. 4
C. 5
D. 6

Thông tin

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

Image metadata

Filename
PRF192_-_S4_-_SU_2023_-_FE_438.webp
File size
59 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom