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 was India's first 3D film?

forum Discussion
MCQ
2.
Four pairs of words are given below out of which three are alike in some manner and one is different. Which is different from the rest?
forum Discussion
MCQ
3.
Electricity is produced through dry cell from
forum Discussion
MCQ
4.

The National Bank for Agriculture and Rural Development (NABARD) is a top-level development financial institution in India, established in ___ to provide agricultural and rural credit.

forum Discussion
MCQ
5.

Which one of the following districts does not touch two States of India?

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