Which uses less memory?
a)
struct astruct
{
int x;
float y;
int v;
};

b)
union aunion
{
int x;
float v;
};

c)
char array[10];

Answer Posted / guest

Ans is B)

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is overriding possible in c++?

647


why is c++ called oops? Explain

668


What is rvalue?

781


How do you define/declare constants in c++?

693


what are the events occur in intr activated on interrupt vector table

1265






what is C++ exceptional handling?

712


What is microsoft c++ redistributable?

699


Can constructor be private in c++?

713


Why is the function main() special?

704


Can a list of string be stored within a two dimensional array?

666


What is an undefined reference/unresolved external symbol error and how do I fix it?

701


Explain about Garbage Collector?

753


Can constructor be static in c++?

761


What is ctime c++?

685


What is array in c++ example?

748