Correct the following code segment fi rst: struct phone { char model[30]; char memory; struct resolution { short horizontal; short vertical; } res; } p; Next, write a program that assigns the values...


Correct the following code segment fi rst:


struct phone {


char model[30];


char memory;


struct resolution {


short horizontal;


short vertical;


} res;


} p;


Next, write a program that assigns the values “Galaxy Note 9” and 8 for the fi rst two members,


and 1920 and 1080 for the inner structure. Print all values.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here