Programming in C - Structure and Union

1. Consider the declaration:
static struct
  { unsigned a:5;
  unsigned b:5;
  unsigned c:5;
  unsigned d:5%:
   }v=(1,2,3,4);
v occupies

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


2. A short integer occupies 2 bytes an, ordinary integer 4 bytes and a long integer occupies 8 bytes of memory
If a structure is defined as
struct TAB{
short a;
int b;
long c;
}TABLE[10];
the total memory requirement for TABLE is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


3. The expression a<<6 shifts all bits of a six places to the left. If a 0x6db7, then what is the value of a<<6?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


4. The declaration
union id{
char color[12];
int size;}shirt, Jeans;
denotes shirt and Jeans are variable of type id and

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


5. Most appropriate sentence to describe unions is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


  • Structures And Union Questions can be used to give quizzes by any candidate who is preparing for UGC NET Computer Science
  • This Structures And Union Questions section will help you test your analytical skills in a tricky method, thereby giving you an edge over other students
  • Any student who wants to prepare for DOEACC A Level, DOEACC B Level, and DOEACC C level can also use these Objective Type Questions Answer.
  • All candidates who have to appear for the Kendriya Vidyalaya Entrance exam can also refer to this mcq section.
  • You can also get access to the Structures And Union MCQ ebook.
  • Structures And Union Questions can be used in the preparation of JRF, CSIR, and various other exams.
  • You can also download pdf for these Structures And Union multiple-choice questions Answers.
  • This Structures And Union Multiple Choice Questions Answers section can also be used for the preparation of various competitive exams like UGC NET, GATE, PSU, IES, and many more.
  • Structures And Union Questions can be used to gain a credit score in various undergraduate and postgraduate courses like BSc, MSc and MCA
  • Structures And Union Questions for UGC NET Computer Science

    Structures And Union MCQ

    Structures And Union Multiple choice questions