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

What will be the result of the following code: struct 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: 15 October 2010 04:01: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 aXnwbT
Related Questions
C# : How can we sort the elements of the array in descending order?

How can we sort the elements of the array in descending order?

By calling Sort() and then Reverse() methods of the Array object.
Category: C# Date: 10/15/2009 4:36:14 AM
C# : What is the difference between the System.Array.CopyTo() and System.Array.Clone()?

What is the difference between the System.Array.CopyTo() and System.Array.Clone()?

CopyTo() method copies all the elements of the current one-dimensional Array to the specified one-di....
Category: C# Date: 10/15/2009 4:33:18 AM
C# : Is it possible to store multiple data types in System.Array object?
C# : What is the difference between String and StringBuilder type?

What is the difference between String and StringBuilder type?

String type is immutable while a StringBuilder type is mutable. StringBuilder objects performs bette....
Category: C# Date: 10/15/2009 4:12:05 AM
C# : What is the difference between a Struct and a Class?

What is the difference between a Struct and a Class?

Following are the two major differences between a Struct and a Class: 1) Struct is a value type whi....
Category: C# Date: 10/13/2009 11:20:40 PM