what is the defrenece between structure and union
Answer Posted / renuka
structure is declared with the keyword struct and structure
variables occupy individual memory location.But Unoin is
declared with the keyword union and its variables are
allocated to a memory at which the highest byte of the
variable is declared.
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
What is the best style for code layout in c?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
Why is it important to memset a variable, immediately after allocating memory to it ?
c program to compute AREA under integral
Is fortran faster than c?
What is restrict keyword in c?
Is there any demerits of using pointer?
How can I manipulate strings of multibyte characters?
What are the back slash character constants or escape sequence charactersavailable in c?
What are the __date__ and __time__ preprocessor commands?
Difference between Function to pointer and pointer to function
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Why is c called "mother" language?
Explain how can I read and write comma-delimited text?
How can a process change an environment variable in its caller?