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
What are the 4 types of library?
what are the events occur in intr activated on interrupt vector table
What are static variables?
What is an adaptor class in c++?
What is pointer in c++ with example?
Define a nested class.
Is rust better than c++?
how to explain our contribution in the project?
What are the advantages of inheritance in c++?
Specify some guidelines that should be followed while overloading operators?
Write a recursive program to calculate factorial in c++.
What is basic if statement syntax?
What is the best c++ compiler?
Is c++ an oop?
What is data binding in c++?