“AugmentedAssignment” (Problem)
What will the following code display?
int a = 0;
int Foo()
{
a = a + 42;
return 1;
}
void Main()
{
a += Foo();
Console.WriteLine(a);
}
Last updated
Was this helpful?
What will the following code display?
int a = 0;
int Foo()
{
a = a + 42;
return 1;
}
void Main()
{
a += Foo();
Console.WriteLine(a);
}
Last updated
Was this helpful?