Structs are largely redundant in c++. Why does c# have them?
Answer / 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 |
What is gac? How to put assembly in gac?
Can a class have static constructor?
What is hashtable in c# with example?
Why do we use class in c#?
Explain about Threading Types.
Can struct inherit from class c#?
What is cls, cts and clr in net?
Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?
What are the features of c#?
Explain About .NET Remoting and types of remoting
How will U encapsulate button trigger event into text_box event of Pressing Enter key?
What are generations and how are they used by the garbage collector?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)