[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WitchTech 00372] Re: 配列?ポインタ?
- Subject: [WitchTech 00372] Re: 配列?ポインタ?
- From: narunaru <narunaru@123mail.net>
- Date: 21 Aug 2000 23:43:39 -0700
On Mon, 21 August 2000, Mr. Shigeki Yamamoto wrote:
> $B$9$0K=Av$5$;$F$7$^$$$^$9!#$^$k$G$*$^$8$J$$$N$h$&$K(Jstatic$B$H=q$$$F$_$?$i(J
> $BF0$/$h$&$K$J$C$?!"$H$$$&$N$,$+$J$jB?$/$F!"$7$+$b0l;~E*$K$7$+;H$o$J$$$N(J
> $B$K@lMQ$NNN0h$r@EE*$K3NJ]$7$F$7$^$C$F$$$k$N$,$J$s$H$J$/5$;}$A0-$/$F!#!#!#(J
$B<XB-$@$H;W$$$^$9$,!"(J
int foo()
{
int a[] = {1, 2, 3, 4};
static int sa[] = {1, 2, 3, 4};
int near *pa = a; /* NG */
int far *fpa = a;
$B$G$O=i4|2=$N%?%$%_%s%0$,JQ$j$^$9$h$M!#(J($B0lHLE*$K(J total $B$N%a%b%j;HMQ(J
$BNL$O(J sa $B$NJ}$,>.$5$/$J$j$^$9!#(J)
$B$^$?!"=i4|2=$r(J (far_)memcpy() $B$G$d$C$?$H$7$F$b!"(Ja[] $B$NMWAG$r(J pa $B$G%"(J
$B%/%;%9$9$k$N$OIT2D$G$9$+$i!"(Jheap $B$r;H$C$?$[$&$,NI$$$G$7$g$&!#(J
--
$B$J$k$J$k(J
ML Archives