PRN211_-_SP_2024_-_RE_1754.webp
L

PRN211_-_SP_2024_-_RE_1754.webp

(Choose 1 answer)
Consider the following pieces of code:
static void Swap<T>(ref T a, ref T b) {
T temp:
temp= a;
C a = b:
b = temp;
}
Which of the following statements is valid to invoke the Swap() method?
A. string a = "3", b = "4":Swap <string> (out a, ref b):
B. int a = 3. b = 4;Swap(ref a, ref b):
C. int a = 3. b = 4:Swap<int>(out a, ref b):
D. string a = "3", b = "4":Swap(ref a. b):


Q: 43

Thông tin

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

Image metadata

Filename
PRN211_-_SP_2024_-_RE_1754.webp
File size
169.8 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom