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
What are virtual constructors/destructors?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What are the new features that iso/ansi c++ has added to original c++ specifications?
What is c++ hiding?
What are the advantages of using pointers in a program?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
Describe the syntax of single inheritance in C++?
What is :: operator in c++?
What does new return if there is insufficient memory to make your new object?
How do you differentiate between overloading the prefix and postfix increments?
What do you mean by function and operator overloading in c++?
What are the two types of comments?
What are the advantages of c++ over c?
Give an example of run-time polymorphism/virtual functions.
What is the main purpose of c++?