Are structs faster than classes?



Are structs faster than classes?..

Answer / Amit Ranjan Kumar

In general, structs can be faster than classes due to their value type behavior and stack allocation. However, the actual performance difference depends on the specific use case.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Advantages of c# over vb.net?

3 Answers   HCL, Syntel,


how to retrieve binary data from database (using c#.net and sql server/windows application)

2 Answers   Soltius,


Why do we need reflection in c#?

1 Answers  


What is new method in c#?

1 Answers  


Can we have a non static member function in a base class to be override in derived with static modifier?

7 Answers   Wipro,


Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.

1 Answers   IBM,


What is a lambda expression in c#?

4 Answers  


Is c# substring zero based?

1 Answers  


Explain the difference between a namespace and assembly name in .net?

1 Answers  


What is difference between method overriding and method overloading?

1 Answers  


Explain the steps to create satellite assembly?

1 Answers  


what is boxing and unboxing?can we initialize unboxing directly?

1 Answers   EDS,


Categories