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

How do I write a c++ program?

605


Write a program which uses Command Line Arguments

642


Is c++ still in demand?

642


Is swift better than c++?

546


What is the difference between map and hashmap in c++?

565






Why do we use classes in c++?

590


Explain friend class?

636


What is the need of a destructor?

646


Is swift faster than c++?

574


what are the iterator and generic algorithms.

1487


Explain the different access specifiers for the class member in c++.

554


Difference between inline functions and macros?

605


Keyword mean in declaration?

600


What is a base class?

612


Is java as fast as c++?

616