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


Please Help Members By Posting Answers For Below Questions

Explain the extern storage classes in c++.

548


How delete [] is different from delete?

590


What is istream and ostream in c++?

590


What is a block in c++?

546


What is the main use of c++?

547






Is c++ platform dependent?

629


Write a c program for binary addition of two 8 bit numbers.

3664


Can we make any program in c++ without using any header file and what is the shortest program in c++.

611


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

605


How are the features of c++ different from c?

590


What is c++ iterator?

639


Difference between pointer to constant vs. Pointer constant

578


Can we use this pointer inside static member function?

623


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

668


What is the difference between global variables and static varables?

565