學會Objective-C的24堂課

使用NSLog函式的輸出格式:

%c - char

%i - int

%f - float, double

%hi - short int

%li - long int

%Lf - long double

%u - unsigned int

%hu - unsigned short int

%lu - unsigned long int

 

sizeof 運算子,用於計算資料型態所佔的byte數,ex:sizeof(資料型態)

 

(p.2-3)

 

Taxonomy term