DEV Community

Asadbek-IT
Asadbek-IT

Posted on

Value Type and Reference Type 2

class Program
{
static void Main(string[] args)
{
int x = 10;
int y = x;
y = 20;
Console.WriteLine(x);
}
}

javob: 10
x ga o'zgatishlar kiritilmagani uchun u oz holatida qoladi.

javob:Alice
p1 ga ozgarishlar kiritilmadi.

Top comments (0)