PRF192_-_SP_2024_-_RE_1724.webp
true_love

PRF192_-_SP_2024_-_RE_1724.webp

Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Size: 10
Time Left:46:39
Multiple Choices
(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
true_love
Ngày thêm
Lượt xem
2,164
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_SP_2024_-_RE_1724.webp
File size
167.7 KB
Dimensions
1834px x 882px

Share this media

Back
Bên trên Bottom