C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 247 Page Views: 

What will be the result of the following code: class T {public int A;} Static void Main(string[] args) { T a = new T(); a.A = 10; T b = a; a.A = 1; Console.WriteLine(a.A == b.A); }



Posted By: Avi Date: 14 October 2010 10:05:46 AM
 Answer:

Waiting for someone to answer

Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image iXZdBw
Related Questions
C# : Is it possible to override private virtual methods?

Is it possible to override private virtual methods?

It's not possible to declare a method as 'private virtual'. So overriding private virtual method doe....
Category: C# Date: 10/28/2009 5:36:41 AM
C# : What is the use of "fixed" statement in C#?

What is the use of "fixed" statement in C#?

The "fixed" statement prevents the garbage collector from relocating a movable variable. T....
Category: C# Date: 10/28/2009 5:25:18 AM
C# : Will finally block get executed if the exception had not occurred?
C# : Which class can be used to perform data type conversion between .NET data types and XML types?
C# : Explain the different types of comments in C#?

Explain the different types of comments in C#?

Following three types of comments can be used in C#: 1) Single-line Comments: Example: //..commen....
Category: C# Date: 10/28/2009 4:53:21 AM