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
How do I write a c++ program?
Write a program which uses Command Line Arguments
Is c++ still in demand?
Is swift better than c++?
What is the difference between map and hashmap in c++?
Why do we use classes in c++?
Explain friend class?
What is the need of a destructor?
Is swift faster than c++?
what are the iterator and generic algorithms.
Explain the different access specifiers for the class member in c++.
Difference between inline functions and macros?
Keyword mean in declaration?
What is a base class?
Is java as fast as c++?