Advertisement
ecco7777

Example 13-6 init-a (unfinished)

Apr 16th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #define MAX 10 /*Size of the array*/
  2. /******************************************************
  3. * init_array_1 -- Zeroes out an array. *
  4. * *
  5. * Parameters *
  6. * data -- The array to zero out. *
  7. ******************************************************/
  8. void init_array_1(int data[])
  9. {
  10. int index;
  11.  
  12. for (index = 0; index < MAX; ++index)
  13. data[index] = 0;
  14. }
  15. /*******************************************************
  16. *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement