Name two features of a union that are absent in a structure. Point out the error in the following code: struct s { float f; char c[10]; }; 14.2 Correct the errors in the following code segment: struct...


Name two features of a union that are absent in a structure.


Point out the error in the following code:


struct s {


float f;


char c[10];


};


14.2 Correct the errors in the following code segment:


struct cd {


char title[20];


short qty;


}


cd.qty = 3;


strcpy(title, “Woodstock69”);



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here