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.
Which of the following languages is used by computers to process data?
forum Discussion
MCQ
2.
The operator used to get value at address stored in pointer variable in ‘C’ language is 
forum Discussion
MCQ
3.
Which is the largest bone in human body?
forum Discussion
MCQ
4.
_______ devices allow us to receive information from the computer.
forum Discussion
MCQ
5.

Which of the following universities was named after the third Chief Minister of Rajasthan?

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