How to avoid structure padding in C?

Answer Posted / ravi

by using #pragma you can avoid structure padding. and that
to u can use it in linux or unix if i m not wrong.

Is This Answer Correct ?    55 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by 'bit masking'?

850


What oops means?

558


Explain what is the difference between a string and an array?

604


What is a pointer variable in c language?

617


What is structure and union in c?

569






Explain union. What are its advantages?

594


Explain how can a program be made to print the line number where an error occurs?

670


which type of aspect you want from the student.

1685


What standard functions are available to manipulate strings?

541


What is function in c with example?

604


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

718


What are the complete rules for header file searching?

640


What are loops c?

590


Where does the name "C" come from, anyway?

617


How are 16- and 32-bit numbers stored?

693