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
Explain the operation of overloading of an assignment operator.
What is a loop? What are different types of loops in c++?
what does the following statement mean? int (*a)[4]
Explain the difference between new() and malloc() in c++?
Explain what data encapsulation is in c++?
What are friend functions in C++?
What are the various access specifiers in c++?
Which operator cannot be overloaded c++?
Write a c program for binary addition of two 8 bit numbers.
Explain the use of vtable.
How many different levels of pointers are there?
Differentiate between a copy constructor and an overloaded assignment operator.
How is new() different from malloc()?
What does int * mean in c++?
What is the use of :: operator in c++?