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 / gourav bhatt
Mr Ranjeet u r wron vecause ib ur case too the answer will
be "b" .thats gud that u find misktake in jaroosh example but
the anser is b coz the union has size 4 .
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Give example of a pure virtual function in c++?
What is a null object in c++?
What is the most useful programming language?
What is the size of integer variable?
Explain the advantages of using friend classes.
Is it possible to provide default values while overloading a binary operator?
Do you know what are static and dynamic type checking?
How a modifier is similar to mutator?
What is function prototyping?
What do you mean by enumerated data type?
Define namespace in c++?
What is stream and its types in c++?
What is the type of 'this' pointer?
What is an operator function? Describe the function of an operator function?
Explain the difference between using macro and inline functions?