Expert C Programming: Deep SecretsThis 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. |
Iz vsebine knjige
Zadetki 1–3 od 45
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++;
case 3: ...
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++;
case 3: ...
Stran 90
72 read_to_first_identifier() ( 73 gettoken(); 74 while (this.typelIIDENTIFIER) I 75
push(this); 76 gettoken(); 77 } 78 printf(“%s is “, this.string); 79 gettoken(); 80 } 81
82 deal_with_arrays() { 83 while (this.typeII'[') { 84 printf(“array “); 85 gettoken(); ...
72 read_to_first_identifier() ( 73 gettoken(); 74 while (this.typelIIDENTIFIER) I 75
push(this); 76 gettoken(); 77 } 78 printf(“%s is “, this.string); 79 gettoken(); 80 } 81
82 deal_with_arrays() { 83 while (this.typeII'[') { 84 printf(“array “); 85 gettoken(); ...
Stran 261
... I printf(“ addr of array param I %#x \n”,&ca); printf(“ addr (ca[O]) I %#X \n”,&(ca[0
])); printf(“ addr (ca[1]) I %#x \n”,&(ca[1])); printf(“ ++ca I %#x \n\n”, ++ca); void
my_pointer_func( char *pa ) I printf(“ addr of ptr param I %#x \n”,&pa); printf(“ addr
...
... I printf(“ addr of array param I %#x \n”,&ca); printf(“ addr (ca[O]) I %#X \n”,&(ca[0
])); printf(“ addr (ca[1]) I %#x \n”,&(ca[1])); printf(“ ++ca I %#x \n\n”, ++ca); void
my_pointer_func( char *pa ) I printf(“ addr of ptr param I %#x \n”,&pa); printf(“ addr
...
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
1 C Through the Mists of Time | 1 |
2 Its Not a Bug Its a Language Feature | 31 |
3 Unscrambling Declarations in C | 63 |
Avtorske pravice | |
10 preostalih delov ni prikazanih
Druge izdaje - Prikaži vse
Pogosti izrazi in povedi
a.out activation record address space algorithm allocated ANSI ANSI C Standard argument array of pointers assignment barometer base class BCPL bytes cache char character compiler compiler-writer const convention data segment data structures debugging declaration default define definition destructor disk dynamic linking element example executable expression Figure float Fortran function call gettoken Handy Heuristic hardware header file identifier Iliffe vector implementation inheritance input integer Intel kernel keyword l-value linker lint longjmp look machine malloc manpage memory leak MS-DOS multidimensional arrays nextstate null object operand operating system parameter printf problem Programming Challenge programming language prototype reference return TYPE routine runtime segmentation fault setjmp/longjmp signal Software Dogma statement statically linked string string literals struct subscript SunOS switch symbol syntax system call There’s thing Turing test typedef UNIX variable virtual memory void write