PRN292c_-_FA_2023_-_1_1180.webp
lanhoa86

PRN292c_-_FA_2023_-_1_1180.webp

  • Media owner lanhoa86
  • Ngày thêm
(Choose 1 answer)
What is the output of the following code?
static void Find(int[] a, ref int x)
{
x = a[0];
foreach (int item in a){
if(item > x)
{
x=item;
}
}
static void Main(string[] args){
int[]a = {2, 1, 8, 3, 7};int x = 0;
Find(a, ref x);
Console.WriteLine(x);
}
A. 8
B. 1
C. 2
D. 7


Exit 49

Thông tin

Category
PRN292c
Thêm bởi
lanhoa86
Ngày thêm
Lượt xem
62
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN292c_-_FA_2023_-_1_1180.webp
File size
47.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom