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.
‘Current’ is related to ‘Ammeter’ in the same ‘Humidity’ is for _____
forum Discussion
MCQ
2.
In a certain code language, 'CUTE' is written as 'BTSD'. How is 'KIND' written in that code language?
forum Discussion
MCQ
3.

As of June 2020, which country has the highest population density?

forum Discussion
MCQ
4.
The input device used for selecting and drawing things on the screen is called ____
forum Discussion
MCQ
5.
Which word does not belongs with the others.
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