Assigning names to structure types
- Politechnika Śląska
- Fundamentals of Computer Programming
Assigning names to structure types typedef struct { float re, im; } tcompl; tcompl a, b, c; a.re = 10.5; a.im = 36.6; b = c = a; ...works like: struct compl { float re, im; }; struct compl a, b, c; a.re = 10.5; ... or: struct { float re, im; } a, b, c; ...