Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 9: Struct and Union (8 pts) What is the size in bytes of the following data structures? a) Size of point3D struct point3D (2

image text in transcribed

Question 9: Struct and Union (8 pts) What is the size in bytes of the following data structures? a) Size of point3D struct point3D (2 pts) signed short x; unsigned int y; char *z; b) Size of val union val 2 pts) long long 11val; char str; short ival [2]; float fval; double dval c) Size of compound struct compound ( 2 pts) char mystring; long *y; union char *c short i; char f; ui d) Size of more compound(2 pts struct more_compound ( char name; int age; short pay; long height; union [ char short id short normal id; char my id; id; union char *text data; int *numeric data long *1_numeric_data; ) data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Prepare an ID card of the continent Antarctica?

Answered: 1 week ago

Question

What do you understand by Mendeleev's periodic table

Answered: 1 week ago

Question

1. Who will you assemble on the team?

Answered: 1 week ago