This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

数据类型长度



您好:

      我在controlsuit中看关于F28m35芯片的例程,程序中出现Uint16、Uint32等。我想请教下几个问题。

1、是不就说可以定义整型为16位或32位,甚至64位?

2、有符号的是不是就是int16、int32了?

3、char型、float型、double型的有符号和无符号在这里面分别怎样定义的,长度分别是多少?

谢谢指导!

  • #ifndef DSP28_DATA_TYPES
    #define DSP28_DATA_TYPES
    typedef int int16;
    typedef long int32;
    typedef unsigned int Uint16;
    typedef unsigned long Uint32;
    typedef float float32;
    typedef long double float64;
    #endif

    这是头文件xx_Device.h里的定义,只是换个写法