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.

Read the given statement and conclusions carefully. Assuming that the information given in the statement is completely true, even if it differs from commonly known facts, decide which of the given conclusions follow/s the statement?

Statement: Some basketball players are women.

Conclusions:

i) Some basketball players are not women.

ii) Not all basketball players are women.

forum Discussion
MCQ
2.
Electricity is produced through dry cell from
forum Discussion
MCQ
3.
As per Prohibition of Dowry Act, dowry is given by?
forum Discussion
MCQ
4.
Flash memory is made up of
forum Discussion
MCQ
5.
DNA are composed only of:
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