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 26
Stran 34
A conformant C compiler must permit at least 257 case labels for a switch
statement ( ANSI C Standard , section 5.2.4.1 ) . This is to allow a switch on an 8 -
bit character ( 256 possible values , plus EOF ) . Switch has several problems ,
one of ...
A conformant C compiler must permit at least 257 case labels for a switch
statement ( ANSI C Standard , section 5.2.4.1 ) . This is to allow a switch on an 8 -
bit character ( 256 possible values , plus EOF ) . Switch has several problems ,
one of ...
Stran 36
Another problem is that any statements inside a switch can be labelled and
jumped to , allowing control to be passed around arbitrarily : switch ( i ) { case 5 +
3 : do_again : case 2 : printf ( " I loop unremittingly \ n " ) ; goto do_again ; default :
i ...
Another problem is that any statements inside a switch can be labelled and
jumped to , allowing control to be passed around arbitrarily : switch ( i ) { case 5 +
3 : do_again : case 2 : printf ( " I loop unremittingly \ n " ) ; goto do_again ; default :
i ...
Stran 38
Default Fall Through Is Wrong 97 % of the Time ( Continued ) switch ( operator- >
num_of_operands ) { case 2 : process_operand ( operator- > operand_2 ) ; / *
FALLTHRU * / case 1 : process_operand ( operator- > operand_1 ) ; break ; }
Case ...
Default Fall Through Is Wrong 97 % of the Time ( Continued ) switch ( operator- >
num_of_operands ) { case 2 : process_operand ( operator- > operand_2 ) ; / *
FALLTHRU * / case 1 : process_operand ( operator- > operand_1 ) ; break ; }
Case ...
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