namespace ConsoleApplication1 struct TMA public int marks; class Program static void Main(string[]] args) TMA X = new TMAO; x.marks = Check(ref x); Console.Write(x.marks +"); Console.ReadLine(); 75; public static void Check(ref TMA y) y.marks = 703; Console.Write(y.marks +"");

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question

explain the working of the program please hlep me soon is possible its C Sharp

namespace ConsoleApplication1
struct TMA
public int marks;
class Program
static void Main(string[] args)
TMA x = new TMA();
x.marks
Check(ref x);
Console.Write(x.marks + );
Console.ReadLine();
75;
public static void Check(ref TMA y)
y.marks = 70;
Console.Write(y.marks + D;
Transcribed Image Text:namespace ConsoleApplication1 struct TMA public int marks; class Program static void Main(string[] args) TMA x = new TMA(); x.marks Check(ref x); Console.Write(x.marks + ); Console.ReadLine(); 75; public static void Check(ref TMA y) y.marks = 70; Console.Write(y.marks + D;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning