Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!aist-nara!ie.u-ryukyu.ac.jp!newshost.ryukyu.ad.jp!sour!merope!void
From: void@merope.opus.or.jp (Kusakabe Youichi)
Subject: Re: [Q]=?iso-2022-jp?B?GyRCR1tOcyRIJV0lJCVzJT8bKEo=?=
Message-ID: <1997Apr11.114014.5534@merope.opus.or.jp>
Organization: Macintosh User Group PLEIADES in opus
X-Newsreader: TIN [version 1.2 PL0]
References: <334DAB24.586@mbox2.inet-osaka.or.jp>
Date: Fri, 11 Apr 1997 11:40:14 GMT
Lines: 42
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:3907
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3907&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

masuishi (masuishi@mbox2.inet-osaka.or.jp) wrote:
: func1$B$b(Bfunc2$B$bA4$/F1$8$G!"@hF,%"%I%l%9$N$_$rEO$7$F$$$k$s$G$7$g$&$+!#(B
: int$B$rEO$9$H$-!"(Bcall by value $B$H(B call by reference $B$N(B2$B$D$,$"$j$^$9$,!"(B

1$B$D$7$+$J$$$G$9$h!#(B

: void func1 (int arg[10][5]);// $B%W%m%H%?%$%W(B
: void func2 (int (*arg)[5]);// $B%W%m%H%?%$%W(B
: 
: void main (void)
: {
: int array[10][5];
: int i, j;
: 
: for (i = 0; i < 10; i++) {
: for (j = 0; j < 5; j++)
: array[i][j] = i + j;
: }
: func1(array);
: func2(array);
: }
: 
: void func1(int arg[10][5])
: {
: $B=hM}N,(B;
: return;
: }
: void func2(int (*arg)[5])
: {
: $B=hM}N,(B;
: return;
: }

: $B85$N!"G[Ns$NFbMF$rJQ$($?$/$J$/$F!"(B
: call by value $B$NMM$KEO$9J}K!$H$+$O$J$$$N$G$7$g$&$+!#(B

$B%3%T!<$7$F$+$iEO$;$P$h$$!#(B

  $B%X(B_$B%X(B   ------------------------
$B%_!&!&(B $B%_(B  void@merope.opus.or.jp
 (  $B!k(B )$B!A(B            $BF|2<ItM[0l(B
----------------------------------
