a. Given the C declarations struct{ int i; double j; } x, y; struct{ int i; double
Fantastic news! We've Found the answer you've been seeking!
Question:
a. Given the C declarations
struct{
int i;
double j;
} x, y;
struct{
int i;
double j;
} z;
the assignment x = z generates a compilation error, but the assignment x = y does not. Why?
b. Give two different ways to fix the code in part ( a) so that x = z works. Which way is better and why?
Related Book For
Elementary Linear Algebra with Applications
ISBN: 978-0471669593
9th edition
Authors: Howard Anton, Chris Rorres
Posted Date: