Chapter 6Exercise 6.1
struct {
int a,b;
};
Exercise 6.2Without a tag or any variables defined, the structure declaration is of little use. It cannot be referred to later. Exercise 6.3
struct int_struc{
int a,b;
}x,y;
Exercise 6.4struct int_struc z; Exercise 6.5p = &z; p->a = 0; Exercise 6.6Explicitly, for example struct x; or implicitly, struct x *p; when no outer declaration exists. Exercise 6.7It is not treated as a pointer, but as a short-hand way of initializing the individual array elements. Exercise 6.8Nothing unusual at all, the string is treated as a literal constant of
type Exercise 6.9Yes. It is easier! |
The C BookThis book is published as a matter of historical interest. Please read the copyright and disclaimer information. GBdirect Ltd provides up-to-date training and consultancy in C, Embedded C, C++ and a wide range of other subjects based on open standards if you happen to be interested. |
|
West Yorkshire Office
GBdirect Ltd
Training: 0800 651 0338 Please call between 0900 and 1700 (UK time) on Monday to Friday South East Regional Office
GBdirect Ltd
Training: 0800 651 0338 Please call between 0900 and 1700 (UK time) on Monday to Friday Please note: |