home *** CD-ROM | disk | FTP | other *** search
- 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
- From: fahad@cs.pitt.edu (Fahad A Hoymany)
- Newsgroups: comp.lang.c
- Subject: How to pass a 2-dim array to a procedure!!
- Message-ID: <17447@pitt.UUCP>
- Date: 12 Nov 92 02:07:43 GMT
- Sender: news@cs.pitt.edu
- Organization: Univ. of Pittsburgh Computer Science
- Lines: 16
-
- First of all I'd like to thank all of you who have been helpfull to us
- in so many ways.
-
- Could some one tell me how I can write the procedure line for a function
- which accepts a 2-dimensional array without specifying the dimension?
-
- For example: I would like to be able to do this:
-
- int procedure (a[][]) /* Is not accepted by the compiler */
-
- whereas:
-
- int procedure (a[]) /* for a 1-dimensional array is acceptable */
-
- C-less in Pittsburgh
- 'Help'
-