sizeof (type name);

sizeof (expr);

sizeof expr;

 

單位: byte

 

int sz = sizeof(array)/sizeof(*array);  //計算array元素個數

創作者介紹
創作者 Deja Vu 的頭像
flyinsky76

Deja Vu

flyinsky76 發表在 痞客邦 留言(0) 人氣( 106 )