Expert C Programming: Deep C SecretsWritten for experienced C programmers who want to quickly pick up some of the insights and techniques of experts and master the fine arts of ANSI C, this volume passes on the wisdom of a highly experienced C compiler writer and his colleagues to help programmers reach new heights, and avoid common software pitfalls along the way. Covers topics that many C Programmers find confusing and features one of the best introductions to C++ and the rationale behind it. |
Iz vsebine knjige
Zadetki 1–3 od 8
Stran 99
... the array , you simply add the subscript to the address that the symbol table
shows a has , and get what's at that location . In contrast , if you declare extern
char * p Chapter 4 • The Shocking Truth : C Arrays and Pointers Are NOT the
Same !
... the array , you simply add the subscript to the address that the symbol table
shows a has , and get what's at that location . In contrast , if you declare extern
char * p Chapter 4 • The Shocking Truth : C Arrays and Pointers Are NOT the
Same !
Stran 102
You do an indirect reference as in diagram 2 , then you step forward to the offset
represented by the subscript as in diagram 1. More formally , the compiler emits
code to : 1. Get the address that p represents , and retrieve the pointer there . 2.
You do an indirect reference as in diagram 2 , then you step forward to the offset
represented by the subscript as in diagram 1. More formally , the compiler emits
code to : 1. Get the address that p represents , and retrieve the pointer there . 2.
Stran 251
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 ...
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 ...
Mnenja - Napišite recenzijo
LibraryThing Review
Uporabnikova ocena - kalafjj - LibraryThingA 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
Vsebina
The Structure of the ANSI C Standard | 17 |
How Quiet is a Quiet Change? | 25 |
Its Not a Bug Its a Language Feature | 31 |
Avtorske pravice | |
15 preostalih delov ni prikazanih
Druge izdaje - Prikaži vse
Pogosti izrazi in povedi
actually address space allocated allows ANSI application argument array assignment base bytes cache cause chapter char character compiler const contains contents Continued create data structures declaration define definition dynamic element error example executable expression Figure float Fruit function give identifier implementation inheritance initial it's keyword known language limit linked look machine means memory method object operand operator parameter passed pointer precedence problem prototype reference result routine rule runtime segment shows signal space specified stack standard statement static step string struct structure SunOS symbol tell thing UNIX unsigned usually variable virtual void write