Why is structure padding done in c?
Answer / Jafar Ali
Structure padding is employed in C to ensure proper alignment of structure members on certain hardware architectures. This can improve performance, as some processors require data structures to be aligned on specific boundaries for optimal access speeds.
| Is This Answer Correct ? | 0 Yes | 0 No |
multiple of 9 without useing +,* oprator
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
Explain what is the difference between a free-standing and a hosted environment?
# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none
Why do u use # before include in a C Progam?
what is pointer
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
What is an endless loop?
What is integer constants?
how to build a exercise findig min number of e heap with list imlemented?
C language questions for civil engineering
what is difference between array of characters and string