What is the difference between a structure and a union?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Structure: All members have their own memory location.
Union: All members share the same memory location.
| Is This Answer Correct ? | 0 Yes | 0 No |
Structure: All members have their own memory location.
Union: All members share the same memory location.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is there any data type in c with variable size?
what is the difference between NULL('\0') and 0?
how to implement stack work as a queue?
What does sizeof function do?
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }
What is memmove?
What is static volatile in c?
why do some people write if(0 == x) instead of if(x == 0)?
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?
When is an interface "good"?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM