1. Çü½Ä: result= isobject(variable)
2. ±â´É: ÀÌ ÇÔ¼ö´Â ÀÎÀÚ variableÀÇ °´Ã¼(object) ¿©ºÎ¸¦ È®ÀÎÇÒ ¶§ »ç¿ëÇÑ´Ù.
ÀÌ ÇÔ¼öÀÇ °á°ú°ªÀÌ 0 ÀÌ¸é °´Ã¼°¡ ¾Æ´Ï¸ç 1 ÀÌ¸é °´Ã¼ÀÓÀ» ÀǹÌÇÑ´Ù.
3. ¼³¸í
(1) ÀÎÀÚ variable°¡ »ó¼öÀÌ¸é °á°ú°ªÀº 0 ÀÌ µ¹·ÁÁø´Ù.
(2) ÀÎÀÚ variableÀÌ °´Ã¼°¡ ¾Æ´Ï¸é 0 ÀÌ µ¹·ÁÁø´Ù.
(3) ÀÎÀÚ variableÀÌ °´Ã¼À̸é 1 ÀÌ µ¹·ÁÁø´Ù.
(4) °á°ú°ª result´Â 0 ¶Ç´Â 1 ÀÇ °ªÀ» Áö´Ñ´Ù.
4. »ç¿ë¿¹
int a[3], b[2][2], c[2][3][4];
int d=100, object.num= 200;
print(" a= ", isobject(a), " b= ", isobject(b), " c= ", isobject(c),
" d= ", isobject(d), "\n");
print(" object= ", isobject(object),
" object.num= ", isobject(object.num), "\n");
print(" d= ", d, " object.num= ", object.num, "\n");
------------------------------ [ Ãâ·Â°á°ú ] ------------------------------
a= 0 b= 0 c= 0 d= 0
object= 1 object.num= 0
d= 100 object.num= 200
|