Explain the difference between struct and union.
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• Struct: All members occupy separate memory.
• Union: All members share the same memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Struct: All members occupy separate memory.
• Union: All members share the same memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
in linking some of os executables are linking name some of them
What is hashing in c language?
What is zero based addressing?
which of the function operator cannot be over loaded a) <= b)?: c)== d)*
10 Answers Cisco, CTS, Google, HCL, HP,
matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.
In which layer of the network datastructure format change is done
Explain what is the benefit of using enum to declare a constant?
What is 02d in c?
what defference between c and c++ ?
Is c still relevant?
What is the use of in c?