Answer Posted / vadivel t
Bit fields main intention is to reduce the memory
consumption.
Syntax:
------
struct
{
int a:1;
/*whatever may be the size of the int(compiler dependent),
only one bit shall be allocated for variable 'a'*/
}BITFIELDS;
Restictions:
------------
1. Accessing or printing address of bitfield variable is
not possible.
2.Array of bit fields, not possible.
3.A function cannot return a bit field variable.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which type of language is c?
What is the size of enum in bytes?
What is the process of writing the null pointer?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is difference between union and structure in c?
Why is this loop always executing once?
Subtract Two Number Without Using Subtraction Operator
What are Macros? What are its advantages and disadvantages?
What is c token?
Do you know the difference between malloc() and calloc() function?
In c language can we compile a program without main() function?
Write a factorial program using C.
What is a constant?
Describe the steps to insert data into a singly linked list.
ATM machine and railway reservation class/object diagram