home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16369 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  889 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!dsinc!pitt.edu!pitt!fahad
  2. From: fahad@cs.pitt.edu (Fahad A Hoymany)
  3. Newsgroups: comp.lang.c
  4. Subject: How to pass a 2-dim array to a procedure!!
  5. Message-ID: <17447@pitt.UUCP>
  6. Date: 12 Nov 92 02:07:43 GMT
  7. Sender: news@cs.pitt.edu
  8. Organization: Univ. of Pittsburgh Computer Science
  9. Lines: 16
  10.  
  11. First of all I'd like to thank all of you who have been helpfull to us
  12. in so many ways.
  13.  
  14. Could some one tell me how I can write the procedure line for a function
  15. which accepts a 2-dimensional array without specifying the dimension?
  16.  
  17. For example: I would like to be able to do this:
  18.  
  19. int procedure (a[][])    /* Is not accepted by the compiler */
  20.  
  21. whereas:
  22.  
  23. int procedure (a[])  /* for a 1-dimensional array is acceptable */
  24.  
  25. C-less in Pittsburgh
  26. 'Help'
  27.