adspace


What is the size of empty structure in c?

Answer Posted / Jitendra Kumar Yadav

The size of an empty structure is equal to the sum of sizes of its members (if any) plus the size of a struct alignment padding needed for alignment purposes. If there are no members, then the size will still be non-zero due to alignment requirements.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In C programming, how do you insert quote characters (‘ and “) into the output screen?

1614


Differentiate between null and void pointers.

1256


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1295


What are pointers? What are different types of pointers?

1263


How can I implement sets or arrays of bits?

1117


What is variable initialization and why is it important?

1391


will u please send me the placement papers to my mail???????????????????

1925


write a c program to find the sum of five entered numbers using an array named number

2244


what is ur strangth & weekness

2588


What is pointer to pointer in c with example?

1197


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

2000


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1358


develop algorithms to add polynomials (i) in one variable

2258


write a program to find out prime number using sieve case?

2174


What is the difference between union and anonymous union?

1397