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

[WitchTech 00310] sizeof(enum)



$B$J$k$J$k$H?=$7$^$9!#(J

    enum { ID1, ID2 } id;

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

# $B5,3J$G(J ID1, ID2 $B$N7?$O(J int $B$G$9$,!"(Jid $B$N7?$O=hM}7ODj5A$G$9!#(J

$B$I$&$G$b$$$$$N$G$9$,!"A0$K$O$^$C$?$h$&$J5-21$,$"$j$^$9(J

# sizeof('a') == 2 ('a' $B$N7?$O(J int)  $B$J$s$F$N$b(J ... $BM-L>$G$9$M!#(J


ML Archives