Sams Teach Yourself C in 21 Days
Workshop ............................................................................................................ The Worksh ...
Working with the Screen, Printer, and Keyboard 375 14 Exercises ................................................................ ...
22 448201x-CH14 8/13/02 11:12 AM Page 376 ...
Week 3 In Review You have finished your second week of learning how to pro- gram in C. By now you should feel comfortable with t ...
378 Week 2 LISTINGR2.1 week2.c. Week 2’s review listing 1: /*-------------------------------------------------*/ 2: /* Program N ...
In Review 379 44: int continue_function(void); CH 14 45: void clear_kb(void); 46: 47: /*---------------------*/ 48: /* start of ...
380 Week 2 95: 96: void get_data(void) 97: { CH 11 98: int cont; 99: 100: for ( cont = YES; last_entry < MAX && cont ...
In Review 381 146: 147: /*-----------------------------------------------------------* 148: * Function: display_report() * 149: ...
382 Week 2 CH 12 196: int ch; 197: 198: printf(“\n\nDo you wish to continue? (Y)es/(N)o: “); 199: CH 14 200: fflush(stdin); CH 1 ...
In Review 383 Day 11, “Implementing Structures, Unions, and TypeDefs.” This program groups all the data for each person into a s ...
384 Week 2 This program uses what you learned in your first two weeks of teaching yourself C. As you can see, many of the concep ...
Week 3 At a Glance By now you have finished your second week of learning how to program in C. You should feel comfortable with C ...
24 448201x-W3G 8/13/02 11:23 AM Page 386 ...
DAY 15 WEEK 3 Pointers: Beyond the Basics On Day 9, “Understanding Pointers,” you were introduced to the basics of pointers, whi ...
int *ptr; declares a pointer named ptrthat can point to a type intvariable. You then use the address-of operator (&) to make ...
Pointers: Beyond the Basics 389 15 How can you use pointers to pointers? The most common use involves arrays of pointers, which ...
The array multicontains two elements. Each of these two elements contains four elements. Each of the four elements is of type i ...
Pointers: Beyond the Basics 391 15 Remember that the name of an array without brackets is a pointer to the first array ele- ment ...
If all three of these pointers have the same value, what is the practical difference between them in terms of your program? Reme ...
Pointers: Beyond the Basics 393 15 Finally,multi[0][0]is an integer, so its size is, of course, four bytes. Now, keeping these s ...
«
16
17
18
19
20
21
22
23
24
25
»
Free download pdf