Expert C Programming: Deep Secrets
Prentice Hall, 14. jun. 1994 - 384 strani
This book is for the knowledgeable C programmer, this is a second book that gives the C programmers advanced tips and tricks. This book will help the C programmer reach new heights as a professional. Organized to make it easy for the reader to scan to sections that are relevant to their immediate needs.
Zadetki 1–3 od 8
Add the offset that the subscript represents onto the pointer value. 3.Access the
byte at the resulting address. The compiler has been told that p is a pointer to
char. (In contrast, an array definition tells the compiler that p is a sequence of
You can apply a subscript to a pointer; you typically do this when the pointer is a
function argument, and you know that you will be passing an array in. 3.An array
declaration in the specific context (only) of a function parameter can equally be ...
This works because of rule 2 in Chapter 8: a subscript is always equivalent to an
offsetfrom a pointer. Thus, turnip[i] selects an individual element, which happens
to be a pointer; then applying subscript [j] to this yields *(pointer + j), which ...
Mnenja - Napišite recenzijo
LibraryThing ReviewUporabnikova ocena - kalafjj - LibraryThing
A very enjoyable read. Not only will you learn aspects of C in great detail (the section on pointers vs. array is excellent), but the author writes in a witty manner I haven't typically found in programming books. (The style reminded me a bit of Programming Perl by Larry Wall.) Celotno mnenje
1 C Through the Mists of Time
2 Its Not a Bug Its a Language Feature
3 Unscrambling Declarations in C
10 preostalih delov ni prikazanih