[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[WitchTech 00311] Re: sizeof(enum)



$B$"$s$_$D(B $B$G$9(B


>     enum { ID1, ID2 } id;
> 
> $B$N$h$&$KNs5s;R$NCM$,(B [0, 127] $B$GI=$o$;$k>l9g$G$9$,(B LSI C-86 $B$G$O(B 
> sizeof(id) == 1 $B$K$J$j$^$9!#(B(-1 $B$rCM$K;}$D$H$-$O(B 2 $B$K$J$j$^$9!#(B)
$B$&$X!#$=$l$OCN$i$J$+$C$?$G$9!#(B

> # $B5,3J$G(B ID1, ID2 $B$N7?$O(B int $B$G$9$,!"(Bid $B$N7?$O=hM}7ODj5A$G$9!#(B
$B$&$X!#$3$l$^$?CN$i$J$+$C$?$G$9!#(B
$B$C$F$$$&$+!"(BK&R$B$h$/C5$7$F$_$?$s$G$9$1$I!"Ns5s7?$NJQ?t$NJ}$K$D$$$F$O2?(B
$B$b=q$+$l$F$$$J$+$C$?!#!#!#(B


ML Archives