What is structure padding ?

Answer Posted / anil

* Padding is useful, for example, in conforming to
externally imposed
layouts of machine registers.

* The obvious advantage is efficient access by CPU.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

620


How can I split up a string into whitespace-separated fields?

562


What is array of structure in c programming?

743


What are the types of pointers?

596


What are the difference between a free-standing and a hosted environment?

735






How can I direct output to the printer?

805


What are dangling pointers? How are dangling pointers different from memory leaks?

612


Give me the code of in-order recursive and non-recursive.

877


What is a char c?

584


What is #include stdio h?

673


What is a wrapper function in c?

575


Describe newline escape sequence with a sample program?

643


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4169


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

711


Who invented bcpl language?

698