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

PRF192_-_SU_2024_-_Block_5_-_RE_2704.webp

Kizspy | Question: 29 (Choose 1 answer)
FUOVERFLOW
Assume we have a function such as:
void swap(int a, int b){
int t = a;a=b;
b=t;}
What is the problem with a and b after executing the swap (a, b) function?
A. a and b do not change values.
B. cannot execute the swap(a,b) function.
C. a has the old value of b, and b has the new value of t.
D. a and b change values for each other;

Thông tin

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

Share this media

Back
Bên trên Bottom