面向51單片機(jī)的Keil uVision4基本數(shù)據(jù)類型簡(jiǎn)介
表1 Keil uVision4面向51單片機(jī)的基本數(shù)據(jù)類型各種屬性一覽表
qTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTrU類 別U 數(shù) 據(jù) 類 型 U長(zhǎng) 度U 值 域 UUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Uunsigned char U1字節(jié)U0~255 UU字符型Usigned char U1字節(jié)U-128~+127 UU Uchar U1字節(jié)U-128~+127 UUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Uunsigned short intU2字節(jié)U0~65535 UU Usigned short int U2字節(jié)U-32768~+32767 UU Ushort int U2字節(jié)U-32768~+32767 UU UTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Uunsigned short U2字節(jié)U0~65535 UU整 型Usigned short U2字節(jié)U-32768~+32767 UU Ushort U2字節(jié)U-32768~+32767 UU UTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Uunsigned int U2字節(jié)U0~65535 UU Usigned int U2字節(jié)U-32768~+32767 UU Uint U2字節(jié)U-32768~+32767 UUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Uunsigned long int U4字節(jié)U0~4294967295 UU Usigned long int U4字節(jié)U-2147483648~+2147483647 UU Ulong int U4字節(jié)U-2147483648~+2147483647 UU長(zhǎng)整型UTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Uunsigned long U4字節(jié)U0~4294967295 UU Usigned long U4字節(jié)U-2147483648~+2147483647 UU Ulong U4字節(jié)U-2147483648~+2147483647 UUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Ufloat U4字節(jié)U±1.75494E-38~±3.402823E+38UU浮點(diǎn)型Udouble U4字節(jié)U±1.75494E-38~±3.402823E+38UUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Ubit U1位 U0,1 UU位 型Usbit U1位 U0,1 UUTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU Usbit U1位 U0,1 UUSFR 型Usfr U1字節(jié)U0~255 UU Usfr16 U2字節(jié)U0~65535 UtTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTs
51單片機(jī)相關(guān)文章:51單片機(jī)教程
c語(yǔ)言相關(guān)文章:c語(yǔ)言教程
評(píng)論