what is the use of bitfields & where do we use them?
Answer Posted / rams
Bit fields are used to restrict the size of a structure member. we can reduce the size of a structure member as a result no wastage of bits. suppose if i want to store date generally it is between 1 to 31 we can store it in 5 bits only.
bit fields can be used only with in structure.
ex:struct st
{
char date:5;
};
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When would you use a pointer to a function?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What are types of functions?
What is void main ()?
What are the modifiers available in c programming language?
Is c still used?
Can a variable be both constant and volatile?
Explain a pre-processor and its advantages.
Give the rules for variable declaration?
Define Array of pointers.
What is function prototype in c language?
What is meant by errors and debugging?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
write a proram to reverse the string using switch case?
Is null valid for pointers to functions?