Explain 'structure padding'?



Explain 'structure padding'?..

Answer / Deep Kumar Singh

Structure padding in C# refers to the spaces added between structures to ensure proper alignment of data when they are stored or transmitted. The compiler adds these paddings to maintain the size and alignment requirements of each platform, operating system, or hardware architecture.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

what is namespace?

6 Answers  


What are value types in c#?

1 Answers  


what is the real use of interface in c#,other than that multiple inheritance is not possible

7 Answers  


Why do we need constructor in c#?

1 Answers  


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

1 Answers   Siebel,


What is the difference between constants and read-only?

1 Answers  


What is a delegate in c#?

1 Answers  


What is dbcontext c#?

1 Answers  


what is work of continue statement in C#?

3 Answers  


What are object pooling and connection pooling and difference between them?

1 Answers  


Is a games console a computer?

1 Answers  


What is gac? How to put assembly in gac?

1 Answers  


Categories