home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / alb_c10 / chap_09 / ch09_07.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-25  |  506 b   |  25 lines

  1. /*********************************************************************
  2. *  CH09_07.C                       Passage d'un tableau α une fonction *
  3. *********************************************************************/
  4.  
  5. #include<stdio.h>
  6.  
  7. void RemiseZero( int[]);
  8.  
  9. main( void)
  10. {
  11.   int i, tab[]= { 4, 3, 2, 1, 0};
  12.  
  13.   RemiseZero( tab);
  14.  
  15.   for( i= 0; i< 5; i++)  printf("\n tab[%d]= %d", i , tab[i]);
  16. }
  17.  
  18. void RemiseZero( int local_tab[])
  19. {
  20.     int i;
  21.  
  22.     for( i= 0; i< 5; i++) local_tab[i]= 0;
  23. }
  24.  
  25.