- Apr 21 Thu 2016 15:55
-
馬達控制
- Jan 15 Thu 2015 11:35
-
MDK 各型態所占空間大小
由於常常要計算空間大小,又在各種開發軟體間流竄,為方便查證,還是留下紀錄.
unsigned char a,b,c,d,e,f,g,h,i;
int main()
{
a=sizeof(char); //1 bytes
b=sizeof(short int); //2 bytes
c=sizeof(int); //4 bytes
d=sizeof(long); //4 bytes
e=sizeof(long int); //4 bytes
f=sizeof(float); //4 bytes
g=sizeof(double); //8 bytes
h=sizeof(unsigned int); //4 bytes
i=sizeof(unsigned long); //4 bytes
unsigned char a,b,c,d,e,f,g,h,i;
int main()
{
a=sizeof(char); //1 bytes
b=sizeof(short int); //2 bytes
c=sizeof(int); //4 bytes
d=sizeof(long); //4 bytes
e=sizeof(long int); //4 bytes
f=sizeof(float); //4 bytes
g=sizeof(double); //8 bytes
h=sizeof(unsigned int); //4 bytes
i=sizeof(unsigned long); //4 bytes
- Sep 05 Wed 2012 10:20
-
GPIB-USB 開箱
- Aug 29 Wed 2012 13:49
-
在MDK環境下使用malloc
- Jul 27 Fri 2012 15:59
-
I2C通訊之 Clock Stretch
1



