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
What is assignment operator?
Explain how do you print only part of a string?
Tell us bitwise shift operators?
Is null equal to 0 in sql?
What is I ++ in c programming?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What are the types of data types and explain?
why return type of main is not necessary in linux
Difference between exit() and _exit() function?
What are formal parameters?
What is the difference between %d and %i?
What are the uses of a pointer?
What is dangling pointer in c?
Why shouldn’t I start variable names with underscores?
How can I swap two values without using a temporary?