PRN211_-_SU_2024_-_RE_2505.webp
golden_swallow

PRN211_-_SU_2024_-_RE_2505.webp

Kizspy | Question: 16
(Choose 1 answer)
static int GetValue(out int a, out int b, int c){
a = ++c;
b = a++;
return c;
}
static void Main(string[] args){
int a=3 b = 4, c=5;
c = GetValue(out a, out b, c);
Console.WriteLine($"a={a},b={b},c={c}");
}
Which one of the following is the output of the above code?
A. a=7,b=6,c=6
B. a=5,b=5,c=5
C. a=7,b=8,c=8
D. a=5,b=2,c=4

Thông tin

Category
PRN211
Thêm bởi
golden_swallow
Ngày thêm
Lượt xem
751
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom