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
Why is the function main() special?
What is protected inheritance?
What are formatting flags in ios class?
What is code reusability in c++?
What return value must conversion operators have in their declaration?
Can we overload operator in c++?
What sorting algorithm does c++ use?
Why do we need c++?
What is a dll entry point?
Is there any function that can skip certain number of characters present in the input stream?
What are the extraction and insertion operators in c++? Explain with examples.
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What is the use of cmath in c++?
What is prototype in c++ with example?
Will c++ be replaced?