adspace
Structs are largely redundant in c++. Why does c# have them?
Answer Posted / Shivani Ranjan
Structs in C# offer some benefits such as value type semantics, automatic memory management for small objects, and usefulness with certain scenarios like enumerations, arrays, and P/Invoke.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers