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
List some applications of c programming language?
What is pointer and structure in c?
Is anything faster than c?
What is malloc calloc and realloc in c?
while initialization of array why we use a[][2] why not a[2][]...?
What does 3 mean in texting?
Why we use stdio h in c?
Write a program to print fibonacci series using recursion?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Why we use break in c?
What is the collection of communication lines and routers called?
Can stdout be forced to print somewhere other than the screen?
What are data types in c language?
Can we change the value of static variable in c?
What is clrscr ()?