Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the use of bitfields & where do we use them?

Answers were Sorted based on User's Feedback



what is the use of bitfields & where do we use them?..

Answer / naveen shukla

Bit field is an idiom used in the computer programming
language to store a value as a short series of bits .
It is most commanly used when we know the fix width of int
type variable to be used .

Is This Answer Correct ?    4 Yes 1 No

what is the use of bitfields & where do we use them?..

Answer / 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

More C Interview Questions

why do we use # in c-language?

1 Answers  


What is "Hungarian Notation"?

0 Answers   Celstream,


How do you override a defined macro?

0 Answers  


How can I write a function that takes a format string and a variable number of arguments?

0 Answers  


A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.

4 Answers  


What is the real time usage volatile?

2 Answers   Polycom,


In c language can we compile a program without main() function?

0 Answers  


Write a program for print infinite numbers

3 Answers   Wipro,


While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.

2 Answers  


write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]

7 Answers  


Can we change the value of #define in c?

0 Answers  


What is your stream meaning?

0 Answers  


Categories