Title: Inaccurate
Review: Schildt makes numerous errors.One example:printf("%f", sizeof f);Clearly wrong: sizeof f has does not have type double.Another example:/* Write 6 integers to a disk file. */void put_rec(int rec[6], FILE *fp){int len;len = fwrite(rec, sizeof rec, 1, fp);if (len != 1) printf("write error");}Wrong again; rec is converted to a pointer to int, rather than an array of 6 ints, because it is in the parameter of a function (try it if you don't believe me).Another example:You may also declare main() as void if it does not return a value.Not at all. main returns int and only int.One last example:x = *p * (*p++);This was his attempt to give a code snippet where the order of evaluation is specified. It's blatantly wrong: *p or may or may not be evaluated before p++.There are many many other errors. This book is only useful as a reference if you are competent enough with C to not need it, in which case, why buy it?
Is this product review negative?