struct ( char a; int b; char e; } one; struct { char a; char c; int b; } two; Which of the following is true? If you don't know the answer (we did discuss this in class), experiment in order to find the answer. struct one takes up more memory than struct two. struct two takes up more memory than struct one. They both take up the same amout of memory.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter20: Queuing Theory
Section20.10: Exponential Queues In Series And Open Queuing Networks
Problem 10P
icon
Related questions
Question
Both the utmp file and any directory are organized as a sequence of structs. Consider the two structs definitioned here:
struct {
char a;
int b;
char c;
} one;
struct {
char a;
char c;
int b;
} two;
Which of the following is true? If you don't know the answer (we did discuss this in class), experiment in order to find the answer.
struct one takes up more memory than struct two.
struct two takes up more memory than struct one.
They both take up the same amout of memory.
Transcribed Image Text:Both the utmp file and any directory are organized as a sequence of structs. Consider the two structs definitioned here: struct { char a; int b; char c; } one; struct { char a; char c; int b; } two; Which of the following is true? If you don't know the answer (we did discuss this in class), experiment in order to find the answer. struct one takes up more memory than struct two. struct two takes up more memory than struct one. They both take up the same amout of memory.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Declaring and Defining the Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole