what is the difference between structure and union?
Answer Posted / sevak.yatrik777
While structure enables us treat a number of different
variables stored at different in memory , a union enables us
to treat the same space in memory as a number of different
variables. That is a Union offers a way for a section of
memory to be treated as a variable of one type on one
occasion and as a different variable of a different type on
another occasion.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why should I prototype a function?
What are dangling pointers? How are dangling pointers different from memory leaks?
What is the correct declaration of main?
how to construct a simulator keeping the logical boolean gates in c
What is data structure in c and its types?
How can you access memory located at a certain address?
What is a pointer on a pointer in c programming language?
What is the difference between a free-standing and a hosted environment?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Explain the priority queues?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Explain the use of keyword 'register' with respect to variables.
How many levels of pointers can you have?
How can I copy just a portion of a string?
How can I write a function analogous to scanf?