Question

What are the trade-offs between name type equivalence and structure type equivalence?

What are the trade-offs between name type equivalence and structure type equivalence?

Homework Answers

Answer #1

Suppose if there is the statement

a = b means the data in the object of 'b' transferred into the object 'a'. only if the type of the object is same, the two object are same type or not is only understand in two ways i.e name type equivalence and structure type equivalence.

Name type equivalence : (If and only if they have the same name)

for an example :

typedef struct

{
int a[200];

int c;

} Queue;

typedef Struct

{

int a[200];

int c;

} Sashi;

Queue m, n;

Sashi p, q;

Suppose if the name equivalence is used then

m = n;  // is Valid

p = q; // is Valid

But

m = p; // is not Valid (Because its name equivalence is not same)

Structure type equivalence : (if and only if they have the same structure)

The example that is listed above

m = p // This will be valid because it has the same structure type

But we have to remember that the c does not support the structure type equivalence

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What are the trade-offs between an internal and an external growth strategy? Which approach is best...
What are the trade-offs between an internal and an external growth strategy? Which approach is best as an international entry strategy? How is corporate parenting different from portfolio analysis? How is it alike? Is it a useful concept in a global industry?
What types of economic trade-offs exist in our lives. Why do trade-offs exist? Use a real...
What types of economic trade-offs exist in our lives. Why do trade-offs exist? Use a real world example (not in the text) to support your answer. What are common mistakes made with economic analysis? Use a real world example (not in the text) to support your answer.
How might globalization and advances in information technology affect the trade- offs between technical and agency...
How might globalization and advances in information technology affect the trade- offs between technical and agency efficiency?
What trade offs are involved in the decision to purchase an ERP software package?
What trade offs are involved in the decision to purchase an ERP software package?
Project managers are often faced with having to manage trade-offs between competing project objectives. For this...
Project managers are often faced with having to manage trade-offs between competing project objectives. For this discussion, address the following: Describe the triple constraint. What are the three components and what is the relationship between them? Provide a scenario for a project manager not having control over one or more of the constraints. Support the post with appropriate citations and references.
Draw a PPC that shows the trade-offs between the production of cotton and soybeans. a. What...
Draw a PPC that shows the trade-offs between the production of cotton and soybeans. a. What would happen to the curve if there was a prolonged drought? b. What would happen to the curve if we found a way to make soybeans resistant to insects, allowing crops to double? c. Where would we produce on the graph if agriculture prices were so low that instead of planting all our land with crops, we rented half the land out to store...
What are the three alternatives in financing current purchases for most consumers? Describe the trade-offs of...
What are the three alternatives in financing current purchases for most consumers? Describe the trade-offs of each alternative.Pls explain in atleast 300 words.
list 10 Trade offs Southwest has chosen to make.
list 10 Trade offs Southwest has chosen to make.
Describe the trade-offs and costs associated with anti predator behavior.
Describe the trade-offs and costs associated with anti predator behavior.
What trade-offs are involved in deciding to have a single large, centrally located facility instead of...
What trade-offs are involved in deciding to have a single large, centrally located facility instead of several smaller, dispersed facilities?