adspace


Explain 'structure padding'?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we use a static class instead of singleton?

952


What is expression tree in c#?

997


What is an abstract class c#?

967


Which namespaces are necessary to create a localized application?

1140


How to assign Null value to Var?

1062


How do you inherit a class into other class in c#?

992