adspace


What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?

Answer Posted / Aman Kumar

In .NET, value types (such as integer) are stored on the stack and have a fixed size, while reference types (such as struct) are stored on the heap and hold a reference to the actual object. Value types are copied by value when assigned, while reference types are copied by reference.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1141