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
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Where register variables are stored in c?
Explain that why C is procedural?
What is the full form of getch?
How many bytes is a struct in c?
What is the concatenation operator?
Explain what is the difference between the expression '++a' and 'a++'?
How can I implement sets or arrays of bits?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is meant by realloc()?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What is || operator and how does it function in a program?
What is difference between far and near pointers?