Menu

Question Discussion & Solution

MCQ
Q.

Consider the following C declaration

struct {

short s[5];

union {

float y;

long z;

}u;

}t;

Assume that objects of type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is

forum Community Discussion

speaker_notes_off

No discussions yet. Be the first to start!

You must be logged in to participate in the discussion.

login Login to Discuss

auto_awesome Similar Questions

MCQ
1.
Turmeric stains on the shirt turn red when washed with soap because ________.
forum Discussion
MCQ
2.

In which of the following cities is the 'Central Arid Zone Research Institute (ICAR)' of Rajasthan located?

forum Discussion
MCQ
3.

Select the option that is related to the third term on the same basis as the second term is related to the first term.

Iraq : Dinar :: Korea : ?

forum Discussion
MCQ
4.

Who is regarded as the Father of computers?

forum Discussion
MCQ
5.

The process of making thread from fiber is called:

forum Discussion

category More Programming Fundamentals Topics

article

Mixed

format_list_bulleted 10 MCQs
article

Introduction to C++

format_list_bulleted 0 MCQs
article

Introduction to Java

format_list_bulleted 0 MCQs
article

Introduction to DotNet

format_list_bulleted 0 MCQs