Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews PC Hardware Interviews:80858086A + (Plus) HardwareA+ and Basic PCBasic ComputerBIOSCD-ROM DriveComputer ArchitectureComputer Architecture And DesignCPU (Central Processing Unit)ECDLElectronicsEmbedded SystemsFloppy DiskHard Disk (HD)Hardware and Software DesignHardware DesignIntel MicroprocessorLaptop Hardware RepairerMicroprocessorMotherboardRAMx86Zip Drive
Copyright © 2018. All Rights Reserved
Embedded Systems Interview Question:
How to define a structure with bit field members?
Submitted by: AdministratorYou can define structure bit field members with Dot operators.
EXAMPLE:
#include <stdio.h>
int main()
{
Struct bit_field
{
Int x.4; // it allocates only 4 bits to x
Char C.6; // it allocates only 6 bits to C;
};
return 0;
}
Submitted by: Administrator
EXAMPLE:
#include <stdio.h>
int main()
{
Struct bit_field
{
Int x.4; // it allocates only 4 bits to x
Char C.6; // it allocates only 6 bits to C;
};
return 0;
}
Submitted by: Administrator
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.