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 |
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
How does placing some code lines between the comment symbol help in debugging the code?
What is difference between && and & in c?
why array index always starts from zero??
how to find out the union of two character arrays?
What is the difference between Printf(..) and sprint(...) ?
What is pointers in c with example?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
when to use : in c program?
wat are the two methods for swapping two numbers without using temp variable??
What is difference between stdio h and conio h?