| Download C Sharp Study App | Structures Trivia e-Book PDF | 213" />
C Sharp MCQs – Certification Test 213
MCQ 213: The correct output for the given code is
struct Sample
{
public int i;
}
class MyProgram
{
static void Main()
{
Sample x = new Sample();
x.i = 10;
fun(x);
Console.Write(x.i + " ");
}
static void fun(Sample y)
{
y.i = 20;
Console.Write(y.i + " ");
}
} :
The App: Structures Trivia App to Learn Structures Notes, C Sharp Trivia App, and Electronic Devices Trivia App for C# development expertise.
The "C Sharp" App: Free Structures Study App Download (Android & iOS) to master object oriented programming. Download Play Store & App Store Study Apps with all functionalities for C# remote coding labs.